I have multiple HA instances (3), all connected to the central HA mqtt ‘hub’ which runs the MQTT add-on. All runs fine, and I can extract all events on all instances according the setup needs.
I’ve now added an aeonlabs Zwave stick and finally managed to successfully connect it and add several switches to it. I can see the events and see the state and sensors it produces on my other HA instances by way of a mqtt-statestream, in which the streamed events are configured. So far so good.
What I don’t know yet, and seek your help with, is how I can toggle the switches from another instance than the Zwave instance on which these switches are created and visible as switches…
On the other ‘subscribing’ instances the state of these switches is a sensor, and not a switch…
I know of mqtt switches, but they require a command t send to the Zwave hub/switch, and it is that I dont know how to do.
A yes, the other way round of course thats possible too!
in that case I don’t even have to publish the states of the switch do I? Simply publish the new self created topics, and have the state of the real switch be the value_template I would imagine?
Still, there are many of these identical switches in my other Hub, and I can switch these like:
as you can see there must be some interface between the actual switch (and its states/attributes) and the hub talking over the ‘http://192.168.1.27/iungo/api_request’
not sure what that request does (will try to get it from the developers) but somehow I must be able to talk to the switch directly, and not have it listen to another state and switch its state by an automation.
could very well be the other Hub does as you prescribe, and hides that behind the ‘http://192.168.1.27/iungo/api_request’ internally. I’ll see if I can request that info.
for now I have this, and it is working. Silly thing is, it doesn’t use the state topic of the real switch at all…
names No and Double are of course somewhat trifle, but I need that because these are imperfect switches: 1 doenst measure at all anymore, and the other effectively doubles the actual power…
Client side (non hub, so ‘switch’ using input_booleans)
of course I could have used the true switch state on the hub side, but, I would have still needed to subscribe on the client sides sensor for state, so might as well parallellize them on both sides… working just fine now, though it still itches I dont know how to send a command_topic to the switch.