Added toothbrush worker with Home Assistant support (#67)

The worker has dicts with possible brush states, modes and sectors
It sends a one time retained Home Assistant autoconfig message to automatically setup a sensor with the correct topics
It sends the state in a state topic and other attributes in an attribute topic
This commit is contained in:
westenberg
2019-05-02 17:51:14 +02:00
committed by zewelor
parent 074a7837d8
commit ee6e7ee8b8
2 changed files with 162 additions and 2 deletions
+14 -2
View File
@@ -68,11 +68,23 @@ manager:
ix: 00:11:22:33:44:55
ia: 11:22:33:44:55:66
topic_prefix: toothbrush
update_interval: 10
update_interval: 10
toothbrush_homeassistant:
args:
autodiscovery_prefix: homeassistant
topic_prefix: toothbrush
devices:
ix:
name: IX
mac: 00:11:22:33:44:55
ia:
name: IA
mac: 11:22:33:44:55:66
update_interval: 10
switchbot:
args:
devices:
heater: 00:11:22:33:44:55
heater: 00:11:22:33:44:55
topic_prefix: switchbot/bathroom
state_topic_prefix: switchbot/bathroom
topic_subscription: switchbot/+/+/set