In my items file I’m combining a nikobus binding, a mios binding and an imperihome binding to 1 switch (see example below). This to sync the state of 1 switch among different systems.
Switch LP_garage “Licht Garage” (Schakelmodule, GR_Lichten_Beneden) { nikobus=“1D5E:1”, mios=“unit:vera,device:35/service/urn:upnp-org:serviceId:SwitchPower1/Status,command:ON|OFF,in:MAP(miosSwitchIn.map)”, imperihab=“room:Beneden,label:Garage,type:DevSwitch” }
When only using the Nikobus binding (below)
Switch LP_garage “Licht Garage” (Schakelmodule, GR_Lichten_Beneden) { nikobus=“1D5E:1”}
all works fine, but when combining I get repeat commands in my log and the system does not always or timely respond to a switch change in one of the different systems (Vera, imperihab, …)
Am I doing something wrong?
Sometimes it works, sometimes it doesn’t. Any timings I need to integrate/change?
The goal I want to reach is switching a openhab switch controls a switch in Nikobus system and Vera system and pressing a physical Nikobus button (or virtual vera switch) syncs state between the other environments and openhab.
Openhab is running on a RPI2 server which is almost not loaded (cpu/mem)
Thanks!
Stefaan
For me it works as long a nikobus switch item is used standalone. When i sync with mios switch (both when using combined binding or using rules) nikobus starts flipping
your log file is incomplete. It does’t show any of the openHAB bus events (like switch received command ON, etc.). This makes it difficult to troubleshoot.
you only post part of the related config. Do you also have a config for button #N10A062?
Are you mapping the mios to commands received on the switch? This won’t work. The switch on the module will only receive a ON/OFF command from the switch is activated within openHAB (e.g. using the web UI). If you use the nikobus button to turn on/off the switch, then the configured switch in openHAB will only receive a status update, not a command. When you use other bindings on the same switch, it is possible that they post an command or state update when they received one. This will depend on the binding used.
To synchronise nikobus channel state to other systems, it’s best to set up a rule which listens to the STATE change of the switch and then send the update as a command to a separate switch containing the mios / imperihab config.
Thank you David for the clear explanation!
i do not have buttons configured as items, I immediately command the switch module channels. this works well.
Indeed, I’ve changed the binding config so only Nikobus is mapped to the switch and imperihab and Mios are both mapped to an other switch item. Both related switch items are synced using rules.
I’ll monitor how this goes the coming days.
Btw, are you planning to update the nikobus binding to a openhab v2 native binding?