Table of Contents

Home assistant

https://www.awesome-ha.com/ config energy
https://wiki.ip2u.ru/smart-home#home_assistant - multiroom

HA. install

:!: HAAS HAOS install on armbian additional HAAS addons repository
:!: in docker HA right docker old Smart home Russia HA on armbian in docker
:!: in proxmox HA in proxmox 8
:!: in openwrt install HA on openwrt https://github.com/openlumi/homeassistant_on_openwrt

HA hardware

открываем домофон https://habr.com/ru/articles/533812/

HA configure tracking user on wifi

https://www.home-assistant.io/integrations/ubus/

Xiaomi - 
>>> Solution >>>
I have create via ES-FileExplorer a file /config/wifi/mac.txt with the wish MAC-Adress with chmod 444 permissions and it works !!!!
<<<Solution <<<

10A2ABxxxxxx - without double point

HA CCTV frigate / scrypted

https://docs.scrypted.app/installation.html – scrypted install docker
https://www.homeautomationguy.io/blog/running-frigate-on-proxmox – frigate install docker on proxmox
https://coral.googlesource.com/webcoral/ - TPU accelerator coral start

# get video VOD
http://localhost:5000/vod/<camera>/start/<start-timestamp>/end/<end-timestamp>/index.m3u8

Full reference config - https://docs.frigate.video/configuration/reference/
good config example - https://github.com/blakeblackshear/frigate/discussions/12870

HA. configue

example http://kvazis.link/hassos
icons https://pictogrammers.com/library/mdi/ https://mdi.bessarabov.com/icon/memory

HA. Floor plan beauty

https://www.youtube.com/watch?v=MCNxgb0mrSA

HA articles

https://sprut.ai/user/AlexAz/contents/articles

HA mysql

Get stats of mysql - where data located

HA - template

# home assistant - executing in day 24h
01h 	24
10m 	144
05m 	288
01m 	1440
05s	17280
01s	86400
 
{% set result = namespace(sensors=[]) %}
{% set exclude = [] %}
{% set hours = 1 %}
{% for state in states.sensor | rejectattr('attributes.device_class', 'undefined') | selectattr('attributes.device_class', '==', 'timestamp') %}
    {{state}}
    {% if 'last_seen' in state.entity_id and not state.entity_id in exclude.entity_id and (states(state.entity_id) == 'unavailable' or ((as_timestamp(now()) - as_timestamp(states(state.entity_id))) > ((hours | int) * 60 * 60))) %}
     {% set result.sensors = result.sensors + [state.name | regex_replace(find=' last seen', replace='') ~ ' (' ~ relative_time(strptime(states(state.entity_id), '%Y-%m-%dT%H:%M:%S%z', 'unavailable')) ~ ')'] %}
    {% endif %}
 {% endfor %}
 {{ result.sensors | join(', ') }}