Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
smart-home [2024/05/02 02:57] – [Home assistant] admin | smart-home [2025/03/10 04:06] (current) – [Pantum M6500W] admin | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Smart home ====== | ====== Smart home ====== | ||
+ | |||
+ | Контроллер - https:// | ||
+ | ====== Smart Home docker ====== | ||
+ | |||
+ | * https:// | ||
+ | * https:// | ||
===== Smart home devices ===== | ===== Smart home devices ===== | ||
^ Устройство | ^ Устройство | ||
Line 11: | Line 17: | ||
* своими руками https:// | * своими руками https:// | ||
* Умный дом с Alex Kvazis - https:// | * Умный дом с Alex Kvazis - https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | |||
+ | ===== Проекты ===== | ||
+ | * [[https:// | ||
+ | |||
+ | ==== Monitoring ==== | ||
+ | * https:// | ||
+ | |||
+ | ===== HA Configuration ===== | ||
+ | * https:// | ||
+ | * https:// | ||
+ | |||
+ | #TODO | ||
+ | sensors with battery list - https:// | ||
===== MQTT ===== | ===== MQTT ===== | ||
* [[https:// | * [[https:// | ||
Line 24: | Line 45: | ||
====== Home assistant ====== | ====== Home assistant ====== | ||
- | https://github.com/frenck/awesome-home-assistant | + | https://www.awesome-ha.com/ |
+ | https:// | ||
===== HA. install ===== | ===== HA. install ===== | ||
:!: HAAS [[https:// | :!: HAAS [[https:// | ||
Line 58: | Line 80: | ||
https:// | https:// | ||
+ | ===== HA mysql ===== | ||
+ | ++++ Get stats of mysql - where data located| | ||
+ | <code SQL> | ||
+ | -- get count of state entity and count of history data | ||
+ | SELECT | ||
+ | states_meta.entity_id, | ||
+ | count(*), | ||
+ | -- states.state, | ||
+ | from_unixtime(min(states.last_updated_ts)) as last_updated_ts, | ||
+ | from_unixtime(min(IF(states.last_changed_ts IS NULL, | ||
+ | states.last_updated_ts, | ||
+ | states.last_changed_ts))) AS last_changed_ts | ||
+ | FROM | ||
+ | states | ||
+ | LEFT JOIN | ||
+ | states_meta ON (states.metadata_id = states_meta.metadata_id) | ||
+ | group by states_meta.entity_id | ||
+ | order by 2 desc; | ||
+ | | ||
+ | -- size of all tables | ||
+ | SELECT table_schema as `DB`, table_name AS `Table`, | ||
+ | ROUND(((data_length + index_length) / 1024 / 1024), 2) `Size (MB)` | ||
+ | FROM information_schema.TABLES | ||
+ | ORDER BY (data_length + index_length) DESC; | ||
+ | </ | ||
+ | ++++ | ||
+ | |||
+ | ===== HA - template ===== | ||
+ | <code BASH> | ||
+ | # 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(' | ||
+ | {{state}} | ||
+ | {% if ' | ||
+ | {% set result.sensors = result.sensors + [state.name | regex_replace(find=' | ||
+ | {% endif %} | ||
+ | {% endfor %} | ||
+ | {{ result.sensors | join(', | ||
+ | |||
+ | |||
+ | </ | ||
====== | ====== | ||
Line 375: | Line 447: | ||
{{: | {{: | ||
+ | |||
+ | ==== Pantum M6500W ==== | ||
+ | <code BASH> | ||
+ | | ||
+ | iso.3.6.1.4.1.40093.1.1.3.12 = INTEGER: 345 | ||
+ | #SNMP OID for " | ||
+ | </ | ||
+ | Mib - {{ : | ||
+ | |||
+ | ==== HP HP Color LaserJet Pro MFP M176n ==== | ||
+ | https:// | ||
+ | <code BASH> | ||
+ | < SNMPv2-SMI:: | ||
+ | < SNMPv2-SMI:: | ||
+ | < SNMPv2-SMI:: | ||
+ | < SNMPv2-SMI:: | ||
+ | --- | ||
+ | > SNMPv2-SMI:: | ||
+ | > SNMPv2-SMI:: | ||
+ | > SNMPv2-SMI:: | ||
+ | > SNMPv2-SMI:: | ||
+ | </ |