Evohome DzVents Control
Posted: Friday 15 November 2019 23:29
Evening all,
I’m a noob to Domoticz and been playing with DeVents. I’m a PLC programmer by trade and have a good understanding of control, but limited knowledge with regards to scripting.
I would like to setup a script to change the mode on my Evohome to “auto” if the outside temp falls below a setpoint/ constant value and if the outside temp rises above a setpoint/ constant value, change the mode to “heating off”.
So far, I have a test script running to monitor the outside temp and write a text file to the log if the temp drops below or above a set of constant values.
I’m struggling with changing the mode my Evohome via the DzVent scripts, I have read the wiki info
And have setup another script setup to try and test it. see below
so far the log returns the following,
and I’m stuck. any help would be greatly apricated
I’m a noob to Domoticz and been playing with DeVents. I’m a PLC programmer by trade and have a good understanding of control, but limited knowledge with regards to scripting.
I would like to setup a script to change the mode on my Evohome to “auto” if the outside temp falls below a setpoint/ constant value and if the outside temp rises above a setpoint/ constant value, change the mode to “heating off”.
So far, I have a test script running to monitor the outside temp and write a text file to the log if the temp drops below or above a set of constant values.
I’m struggling with changing the mode my Evohome via the DzVent scripts, I have read the wiki info
And have setup another script setup to try and test it. see below
Code: Select all
return {
active = true,
on = {
timer = {'every minute'},
},
execute = function(domoticz, triggeredItem, info)
domoticz.log(domoticz.devices('EvoTouch').state)
domoticz.devices('EvoTouch').setMode(domoticz.EVOHOME_MODE_HEATINGOFF, nil, nil, nil )
end
}
Code: Select all
/generated_scripts/Evohome State.lua
2019-11-15 22:28:00.574 Status: dzVents: Info: ------ Start internal script: Evohome State:, trigger: every minute
2019-11-15 22:28:00.610 Status: dzVents: Info: Auto
2019-11-15 22:28:00.610 Status: dzVents: Error (2.4.19): An error occured when calling event handler Evohome State
2019-11-15 22:28:00.610 Status: dzVents: Error (2.4.19): ...ticz/scripts/dzVents/generated_scripts/Evohome State.lua:14: attempt to call field 'setMode' (a nil value)
2019-11-15 22:28:00.611 Status: dzVents: Info: ------ Finished Evohome State