Openhab to Vera3 interaction (Resolved)

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

this is what I was able to exact from the “http://Vera-Ip:3480/data_request?id=user_data&output_format=xml

device id=“43” device_type=“urn:schemas-upnp-org:device:BinaryLight:1” id_parent=“42"
disabled=“0” device_file=“D_BinaryLight1.xml” impl_file=”" manufacturer="" model="" altid=“e1” ip="" mac="" time_created=“1463805302” category_num=“3” subcategory_num=“0” embedded=“1” device_json=“D_BinaryLight1.json” name=“LaundrySwitch2” onDashboard=“1” room=“5” local_udn=“uuid:4d494342-5342-5645-002b-000001ccd4fc”>"

I check the logs and look like the Vera is not sending switch info

What do you recommend as next step for the trouble shooting?

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.

Not sure what append

Used this rule as work around:

rule "Vera switch"
when
Item Switch43 changed
then
switch (sendHttpGetRequest(“http://Vera_ip:3480/data_request?id=variableget&DeviceNum=43& serviceId=urn:upnp-org:serviceId:SwitchPower1&Variable=Status”)) {
case “1” : {sendHttpGetRequest(“http://Vera_ip:3480/data_request?id=action&output_format=xml&DeviceNum=44&serviceId=urn:upnp-org:serviceId:SwitchPower1&action=SetTarget&newTargetValue=1”)
logInfo(“STDOUT”, “+++++cron 2 second changed move to 1***”)
sendCommand(Switch43, “ON”)
}
case “0” : {sendHttpGetRequest(“http://Vera_ip:3480/data_request?id=action&output_format=xml&DeviceNum=44&serviceId=urn:upnp-org:serviceId:SwitchPower1&action=SetTarget&newTargetValue=0”)
logInfo(“STDOUT”, “+++++cron 2 second changed move to 0***”)
sendCommand(Switch43, “OFF”)
}
}

end

It work for few days and today I was working email notification and I realized that my transform was working now.

Any way the good news is that it is working now.

Guessed: Thanks for your help.