Page 1 of 1
Time actions
Posted: Sunday 24 October 2021 14:03
by arjan93
Hii all,
I`m new with dzVents programming and for so far it works well for me.
There is only one thing i don`t get work for now. I have a program with multiple timer actions.
Is there a way to simply activate a switch or something on a specifically time?
I mean something like:
if (domoticz.time == '13:52') then
Test.switchOn()
Re: Time actions
Posted: Sunday 24 October 2021 20:14
by rrozema
You don't need a script for that: you can do that in the user interface. Click on the "Timers" button in the 'Switches' tab and add the timer using the "On time" option.
Re: Time actions
Posted: Monday 25 October 2021 16:48
by heggink
If you wanted to use dzvents, you could use a simple timer trigger rule:
Code: Select all
on = {
timer = { 'at 13:45' } ,
...
You can combine timer rules with device trigger rules in which case you can check what triggered the script. It's quite well described in the wiki (
https://www.domoticz.com/wiki/DzVents:_ ... gger_rules) but feel free PM me if you need more help.
H
Re: Time actions
Posted: Friday 19 August 2022 18:48
by solarboy
If however, you do want to have this in a script function, how could you achieve it ?
Re: Time actions
Posted: Friday 19 August 2022 22:32
by rrozema
dzvents is a script function.
Go into the Events page ('Settings' -> 'More Options' -> 'Events'), click the +-sign at the right most of the tab header(s). Select 'dzvents' -> 'Timer' and you'll get a newly created example script with lots of timer-trigger examples to choose from.