mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 23:22:02 +01:00
98677c18b3
HASS registers availability topics before calling start(), so the AbstractMQTTThingHandler was never subscribing/starting the availability channel(s). So do so in start() of the base class. I checked other implementations, and either they already handle re-registering availabilityTopics in their start() (GenericMQTTThingHandler), or they don't use availabilityTopics at all from the base class and manage it themselves (Homie). Note that this shows up as newly-added HASS things not having a problem (because the components aren't discovered until after the ThingHandler is started), but if you restart OpenHAB or disable/enable the thing, the channels (and components) are cached, thus how availabilityTopics are known before starting. Signed-off-by: Cody Cutrer <cody@cutrer.us> |
||
---|---|---|
.. | ||
src | ||
NOTICE | ||
pom.xml | ||
README.md |
HomeAssistant MQTT Components Binding
HomeAssistant MQTT Components are recognized as well. The base topic needs to be homeassistant. The mapping is structured like this:
HA MQTT | Framework | Example MQTT topic |
---|---|---|
Object | Thing | homeassistant/../../object |
Component+Node | Channel Group | homeassistant/component/node/object |
→ Component Features | Channel | state/topic/defined/in/comp/config |
Requirements
The HomeAssistant MQTT requires two transformations to be installed:
- JINJA-Transformations
- JSONPath-Transformations
These can be installed under Settings
→ Addon
→ Transformations
Limitations
- The HomeAssistant Fan Components only support ON/OFF.
- The HomeAssistant Cover Components only support OPEN/CLOSE/STOP.
- The HomeAssistant Light Component only supports RGB color changes.
- The HomeAssistant Climate Components is not yet supported.
Tasmota auto discovery
To activate HomeAssistant discovery support on your Tasmota device you need to do the following:
Configuration
→MQTT
: You must have uniqueClient
name andTopic
(should be the default).Configuration
→Other
: TheDevice Name
will be used to identify the newly found device. And you need to enable MQTT, of course.Console
: EnterSetOption19 1
.
Your Tasmota device should now show up in your inbox.