First post on forum. I’ve been struggling with Vera and MiOs for the last couple of days, and got my system up and running, almost. Joust one thing missing. I have a thermostat (HRT4-ZW) controlling my wall mounted electric ovens via plugin modules. I’ve managed to make scenes lowering the temperature to 17C during the night, and back to 23C during daytime.
I travel alot, and want to be able to make a “gone” scene lowering the temperature to lets say 12C when I’m not at home. Is it possible to make this “gone” scene override the day/night temperature settings, or prevent them from kicking in without LUA-programming? which I do not know. Maybe one of you could help script this for me, if there is no way around it?
You could use a virtual switch for that (install it from apps.mios.com). For example you call it “gone”, and if it is on it means you are gone. In the scenes which regulate your night and day temperature you could then add a few luup lines which prevent the scenes from running if this switch is on. In your gone-scene you do it the other way around, meaning prevent the scene from running if the gone-switch is off.
Luup Code example (for gone-scene):
gone = luup.variable_get("urn:upnp-org:serviceId:VSwitch1","Status",deviceid)
if (gone == "1") then
return true
else
return false
end
As @chixxi said, a virtual switch could be useful. Either through the mentioned plug-in, or other/older variants referred to in prior topics on the home/away subject.
You might want to check out the ‘Virtual Clock’ plugin from the App Store.
I’ve not tested this, but the app should allow you to set he clock to run a scene at the same time every day (e.g. set temp to 18) , and just choose ‘bypass’ when you don’t want it to run.
You could then also have a scene that looks for the ‘Bypass’ to set on the virtual clock for it to the run the scene to set temperature to 12.
Or forgive me chucking ideas at you - but you could install 2 instances of the virtual clock plugins and have it set up as a ‘home’ and ‘away’ clock - allowing you then to have one schedule whilst at home and another away (arming or bypassing one when you come home or go away)
Best Home Automation shopping experience. Shop at Ezlo!