Evohome dzVents script questions

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

Post Reply
riko
Posts: 90
Joined: Saturday 22 August 2020 13:36
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Evohome dzVents script questions

Post by riko »

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()
<- it is evohome_controller.mode
  • What is the difference between setMode AUTO and AUTOWITHRESET?
[/list]
  • 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?
I tried to google and search on this forum but don't find many examples of Evohome controlling systems. More questions might follow ;)
Last edited by riko on Thursday 21 October 2021 9:58, edited 8 times in total.
User avatar
waltervl
Posts: 6691
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: Evohome dzVents scipt quesetions

Post by waltervl »

According the documentation only evoHome zones .SetsetPoint() can have command options.
I do not have evoHome so cannot help you with the other functionality.

https://www.domoticz.com/wiki/DzVents:_ ... 28zones.29
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
riko
Posts: 90
Joined: Saturday 22 August 2020 13:36
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Evohome dzVents script questions

Post by riko »

Okay thanks for confirming this.

Still curious to some experience/examples of Evohome users that have dzVents scripts running for the other questions
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest