you are absolutely right. TCP and MQTT and so on are for sure way more future-proof than domain sockets.
TCP just forced me to shift some of my logic to my service, because that logic is really timing-critical and does not allow for any delays caused by MQTT.
I finally tried homie, and i am slighty confused.
If i have, for instance, a ringer, which is configured as a contact in openhab,
how does homies âtrue/falseâ for a switch work together with openhabs âON/OFF/OPEN/CLOSEDâ for switches/contacts?
The MQTT binding exactly. It consists of 3 bundles that are all installed at once, and one is the Homie MQTT part. It works for auto-discovered things only, of course. Thatâs the entire purpose of Homie.
thanks, that is exactly what i have been searching for.
Is there a reason sending a command to a homie-item does not update its state?
And even manually updating its state through a rule does change its state,
it does not trigger a MQTT publish though.
As far as i can judge a homie-thing is read-only so farâŠ
Maybe my items are not writable because the items themselves are switches, yet the homie property is configured as a contact.
Although the homie type looks like that: âhomie/bleio-dfb3a20fa00c/contact/$type contactâ, it is recognized by openhab as a switch.
When linking the channel to a Contact regardless i get the following error: âCommand âCLOSEDâ not supported by type âOnOffValueâ: No enum constant org.eclipse.smarthome.core.library.types.OnOffType.CLOSEDâ
⊠is not specified. Only $datatype. And OH also only use that one, so if your data is a boolean, openHAB will create a switch channel. If $settable=false it will create a read-only switch channel.
A âsensor contactâ cannot be expressed by Homie yet, because we would indeed need to specify valid values for $type, which did not yet happen in the Homie Spec Group.