Hi, i use Home Assistant, but i also want to use OpenHab, i have some old android indoor tablets, that run Android 5 and openhab works in it , HA doesnt
Is there an easy way to control entities from openhab to HA? Or maybe some import?
I’m new to openhab…
Or can i do it with curl commands? so that i use the API from HA itself?
What, you mean integrating home assistant plugins into openHAB??
That would be a pretty cool concept, to have a sort of compatibility layer… wonder if it’s even feasible…
You could use existing OH rest API to control OH from HA or use OH HTTP binding to control HA, if HA is providing API for it.
However I have not seen this working, it’s just an idea.
Downside is definitively, that you manually need to maintain your smart home entities in both systems, therefore I would not use it to have everything available in both systems, but only where is a real need.
thnx , i also found this, the mqtt s the way to go
i could use indeed http binding and send rest command, but thats a lof ot programming again in openhab
Are you planning to duplicate your HA system in openHAB, or only make a few devices available to it? And what kinds of devices are they?
MQTT is definitely the way to go for things that must be primarily controlled by HA, but in other cases you may just be able to have them available in both.
No, it’s only for light/switch/cover domain, to turn stuff on/off from my indoor tablets (intercom)
I’m not interested to see sensors and stuff like that
In HA my lights are all TCP based lights, with canbus for states, I created my own addon for that… Not wanna duplicate it, it was quite difficult… So indeed mqtt is the way to go… That custom component looks interesting, it should setup a discovery too
It’s hard coded because that’s what the Home Assistant MQT standard dictates it must be. If you use some other topic it won’t be that standard any longer. Both the Home Assistant and Homie MQTT topic topology standards have fixed root topics so clients know where to look for discovery.
I suspect you’d have to modify the binding code and rebuild to modify that to use some other topic.
it converts all my entities in HA into mqtt entities… so they can beu used on other systems like openhab for instance … so that step is done
but if i setup the “homeassisant” basetopic in that component,with discovery turned on the broker, it generates constanty duplicates in a loop… so i need to define another basetopic where the new mqtt enties are stored that will be synced to openhab
Is it possible to change that binding, so we can make the basetopic an option to configure?
Or i need to disable discovery on the broker
Or i need to modify the binding code …
i think its only the line below, right? i am new to openhab, need to install it also , but if i fork that binding, how can i make a new jar file of it and use it as a custom ?
Anything’s possible if someone volunteers to do it. You can file an issue but filing an issue is not a guarantee that the code will be modified. See How to file an Issue.
In the mean time, you can forego the automatic discovery and use Generic MQTT Things. It’s more work but you have full control over all aspects of the subscription and publication to the topics. Frankly, that’ll be a lot less work in the long run. It sounds like you only have a few relatively simple devices.
You’ll need to set up a dev environment (see Build System | openHAB). Once built you can put the add-on’s jar file into the addons folder for OH (location depends on how OH is installed).
my HA setup is verry big, lots of lights/scripts/covers sensors/automations … already using it for 8 years…
But the problem is, i have 2 indoor panels, that are being used for my doorbell intercom, they run android 5.0 in background, and can have 2 extra .apk files added, adding HA is usesless, way too slow to load the frontend…
But i installed openhab on it, and activated that demo server, its runs smooth
the idea was to just control lights/switches from those tablets, not the fancy stuff, just some basic entities …
I dont have an openhab environment yet, i like to have disocvery still turned on
Gonna install openhab on my synology… whats not clear to me yet, is how to make a new jar file, with that modified string for the basetopic? how can i do that ?