vanackej / risco-mqtt-local

Provide Risco alarm system integration to Home assistant using local TCP communication (no cloud required) and MQTT
MIT License
24 stars 11 forks source link

Partition labels, publish HA discovery info only once #43

Closed markxroberts closed 2 years ago

markxroberts commented 2 years ago

Combining risco_node_id and mqtt_alarm_topic caused my installation to break. It occurred to me that we don't allow relabelling of partitions, so I've included this configuration now. I've changed MQTT publishing structure so that partitions are published under subheading of partitions. For upgrades, recommend deleting existing MQTT devices and allowing risco-mqtt-local to recreate all of these to avoid duplicate devices. Implementation of checking HA online status caused double-publishing of HA discovery info at startup. This is now fixed. Persisting issue: for new installs, state of entities not published initially.