Evohome dzVents script questions
Posted: Monday 11 October 2021 20:03
I'm trying to control my new Evohome system through the web interface using the dzVents scripts. I've succesfully installed the web interface and can control the system manually. The explanation in the Wiki is a bit brief on Evohome (controller and zones parts). Is there somebody who can answer the following questions?

- Are the command options working for Evohome (controller)? Meaning statements like afterMin()? <- only possible for zones
- Is it possible to read the current status/mode of the controller? I've tried evohome_controller.state()
- What is the difference between setMode AUTO and AUTOWITHRESET?
- How can I turn on the heater in AUTO mode, but including the configuration of the special day (CUSTOM). I've tried to run the two commands after each other: evohome_controller.setMode(dz.EVOHOME_MODE_AUTO) evohome_controller.setMode(dz.EVOHOME_MODE_CUSTOM) which results in the heater is turned off
- How do the optional parameters in setMode() work?
- dparm: I guess this is refers to make this command temparary? I've tried this line. It switches to away mode, but it doesn't switch back after the minute
Code: Select all
local Time = require('Time') local function makeSeconds(sec, min, hour, day, month, year ) -- simplified (month=30, year=365) if sec == nil then sec = 0 end if min == nil then min = 0 else min = min * 60 end if hour == nil then hour = 0 else hour = hour * 3600 end if day == nil then day = 0 else day = day * 24 * 3600 end if year == nil then year = 0 else year = year * 365 * 24 * 3600 end return sec + min + hour + day + year end evohome_controller.setMode(dz.EVOHOME_MODE_AWAY, os.date("!%Y-%m-%dT%TZ",os.time(Time(dz.time.raw)) + makeSeconds(0,1,0,0,0,0))) -- bij nachtknop indrukken gaat de verwarming tijdelijk op away
- What is 'action' meant for?
- dparm: I guess this is refers to make this command temparary? I've tried this line. It switches to away mode, but it doesn't switch back after the minute