8 ms·
You can always leverage existing MQTT based components https://www.home-assistant.io/components/mqtt/ https://www.home-assistant.io/components/mqtt/, by making
by selvakn 8y ago
You can always leverage existing MQTT based components https://www.home-assistant.io/components/mqtt/ https://www.home-assistant.io/components/mqtt/, by making your component MQTT compatible.
Adding new component is also relatively straight forward. For ex, have a look at https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/switch/zigbee.py https://github.com/home-assistant/home-assistant/blob/dev/ho... and other components. You implement couple of methods of existing traits, in this case, SwitchDevice.