hello all
i have a thermostat and a switch in my z wave network
I want my switch to be turned on on a specific temperature
I wrote this scene and it works fine
but everytime i want to change the temperature i have to go inside and do it manually
how can i turn this scene to like a device where i can type a number and this device or plug in replaces the old number with the new one?
if i can change the “<” and “>” signs will better
the scene is:
local lul_temp = luup.variable_get(“urn:upnp-org:serviceId:TemperatureSensor1”,“CurrentTemperature”, 42)
if (tonumber(lul_temp) >20) then
luup.call_action(“urn:upnp-org:serviceId:SwitchPower1”, “SetTarget”, {newTargetValue = “1”}, 14)
else
luup.call_action(“urn:upnp-org:serviceId:SwitchPower1”, “SetTarget”, {newTargetValue = “0”}, 14)
end