Controlling EvoHome using LUA
Posted: Tuesday 06 February 2018 11:29
Hello,
Four years ago, I aquired the EvoHome multi-zone system, wanting one day to create a smart home heating system. Now, with the arrival of cheap sensors from Xiaomi, I am finally in the "Home stretch".
In each EvoHome zone (room), one (or multiple) PIRs are placed. After not detecting any motion for 15 minutes, the lua script checks the room setting and if it is set to "Auto", and if the program temperature is set to more than 15C, the room is set to "PermanentOverride" at 10C
When the PIR detects a room presence for more than 5 min., and if the room setting is set to "PermanentOverride" at 10C, the lua script should activate the "Auto" setting for that room. I said should, because I am not able to get it back from "PermanentOverride" using LUA and JSON.
To set the room to "PermanentOverride" I use the JSON script from the Evohome - Domotiocz Wiki:
Updating a setpoint using the JSON API
/json.htm?type=setused&idx=<idx>&setpoint=<setpoint>&mode=<mode>&used=true
<idx> id number of the evohome zone device in Domoticz
<setpoint> set point in degrees (will be ignored for Auto)
<mode> Auto,TemporaryOverride,PermanentOverride,FollowSchedule
used must be true
I'm running the latest Domoticz Beta on synology 6.1, The Evohome has the color display without Wifi, linked to Domoticz using the HGI/S80 gateway.
I'm sure I am not the only one to have this idea of using Domoticz for controlling the EvoHome system, so I hope that someone can help me solving this problem. Thanks a lot,
PS in Domoticz web interface, I am able to change setpoints, temporary override, etc...
Four years ago, I aquired the EvoHome multi-zone system, wanting one day to create a smart home heating system. Now, with the arrival of cheap sensors from Xiaomi, I am finally in the "Home stretch".
In each EvoHome zone (room), one (or multiple) PIRs are placed. After not detecting any motion for 15 minutes, the lua script checks the room setting and if it is set to "Auto", and if the program temperature is set to more than 15C, the room is set to "PermanentOverride" at 10C
When the PIR detects a room presence for more than 5 min., and if the room setting is set to "PermanentOverride" at 10C, the lua script should activate the "Auto" setting for that room. I said should, because I am not able to get it back from "PermanentOverride" using LUA and JSON.
To set the room to "PermanentOverride" I use the JSON script from the Evohome - Domotiocz Wiki:
Updating a setpoint using the JSON API
/json.htm?type=setused&idx=<idx>&setpoint=<setpoint>&mode=<mode>&used=true
<idx> id number of the evohome zone device in Domoticz
<setpoint> set point in degrees (will be ignored for Auto)
<mode> Auto,TemporaryOverride,PermanentOverride,FollowSchedule
used must be true
I'm running the latest Domoticz Beta on synology 6.1, The Evohome has the color display without Wifi, linked to Domoticz using the HGI/S80 gateway.
I'm sure I am not the only one to have this idea of using Domoticz for controlling the EvoHome system, so I hope that someone can help me solving this problem. Thanks a lot,
PS in Domoticz web interface, I am able to change setpoints, temporary override, etc...