I try to connect my Openhab to my Vera 3 for few days now.
I managed to received information from temperature sensor using this Items
Number Sensor7Tem “Temperature HallWay [%.2f C]” (All) {mios=“unit:house,device:62/service/TemperatureSensor1/CurrentTemperature”} => it working well
I try to receive switch information from
Switch Switch43 “laundry sw2[%1d]” (All) {mios=“unit:house,device:43/service/SwitchPower1/Status,command:ON=SwitchPower1/SetTarget(newTargetValue=1)|OFF=SwitchPower1/SetTarget(newTargetValue=0),in:MAP(miosSwitchIn.map)”} => not working
You may want to use the MiOS Item Generator. It’ll avoid having to hand-craft the openHAB Items files, which can be error prone.
For a Switch, it’ll generate something along the lines of:
Switch FamilyMainLightsStatus "Family Main Lights"
(GSwitch,GManagedEmergency,GManagedGoodnight,GManagedSwitch)
{mios="unit:house,device:14/service/SwitchPower1/Status"}
(newlines added for readability only)
I’ve tweaked mine a bunch since the initial effort, to include my Groups etc.
Note that switches have (mapped) ON or OFF (String) values once they’re mapped into openHAB, instead of the original 0 or 1 (Number) they had in MiOS. You’ll need to take that into account when formatting the value.