Hopefully someone can shed some light on this before I lose my mind!
[code]bath_boostmode = luup.variable_get(“urn:upnp-org:serviceId:VContainer1”, “Variable1”, DeviceMSHeatMonBath)
luup.call_action( “urn:richardgreen:serviceId:VeraAlert1”, “SendAlert”, {Message=“Bathboostmode=” … bath_boostmode}, DeviceVeraAlerts)
if (bath_boostmode == “1”) then
target_temp_bath = luup.variable_get(“urn:upnp-org:serviceId:VContainer1”, “Variable3”, DeviceMSHeatContBath)
luup.call_action( “urn:richardgreen:serviceId:VeraAlert1”, “SendAlert”, {Message=“1. target=” … target_temp_bath}, DeviceVeraAlerts)
else
target_temp_bath = luup.variable_get(“urn:upnp-org:serviceId:VContainer1”, “Variable2”, DeviceMSHeatContBath)
luup.call_action( “urn:richardgreen:serviceId:VeraAlert1”, “SendAlert”, {Message=“0. target=” … target_temp_bath}, DeviceVeraAlerts)
end
luup.variable_set(“urn:upnp-org:serviceId:VContainer1”,“Variable2”,target_temp_bath,DeviceMSHeatMonBath)
luup.call_action( “urn:richardgreen:serviceId:VeraAlert1”, “SendAlert”, {Message=“Exit if then”}, DeviceVeraAlerts)[/code]
I noticed the above if…then code didn’t seem to be running at all (in either state), so I put in a few Vera Alerts just for quick debugging to show what was working or not.
Very bizarrely, when this runs I get just the first alert message and then …nothing…not even the alert to say the if…then has exited. This code runs every minute or so and I just get the first alert every time. Subsequant code to this appears to continue running fine !!!
Thinking maybe Vera Alerts didn’t like a queue of messages I also tried removing the first alert…and…nothing.
Any clues what going on here ?