Hi:
I’m adding some devices that are not supported by OH in Home Assistant, however I’d like to keep all automations in OpenHAB for now and hence I need a way in OH to:
I have MQTT broker and almost 0 experience with HA, I’m aware that there are add-on in HA to control OpenHAB devices but not sure anything the other way around.
Any suggestion what’s the most convenient way to support this? Thank you!
The easiest is to install MQTT Statestream in Home Assistant. That will send every device/entity status or change to the MQTT Broker under homeassistant/ topic (and you can choose to exclude device/entities you don’t want to send to the broker). Your configuration.yaml could look like the below (without exclude section unless you add it):
You can then use those topics to update OH. Going the other way (OH to HA) is pretty simple, but (to my limited knowledge of HA) requires automations to act on topic subscriptions. Here’s an example turning on a fan controlled by HA (command sent by OH):
I have researched there are no binding existing. But here you go:
I have a few native HomeKit cheap switches from Amazon, works fine with Homekit but doesn’t have open protocol, so I plan to use HA to bridge the device to HK (pity that OH doesn’t support bidirectional HK integration)
Dreame Vacuum L20 Ultra, works fine in HA but no plan to support in OH.
I just noticed that the actions were blank. I moved the fan to OH Matter and deleted the device in HA, but the automation remained. A better look at the “Then do” section looks like this: