I have been using Domoticz for mor ethan a year and have lately taken dzVents into use in order to have more control.
My current problem is regarding my garden lights. I want them to turn on in the morning, before sunrise, and the turn of at sunrise. Similarly I turn them on in the evening at sunset and turn them off at midnight. This all worked corretly without any scripting. I added Telegram as notification channel, but often the same notification comes multiple times. Why?
No I', trying to implement this in dzVents. I start off with a few timer triggers:
Code: Select all
timer = {
'at sunrise',
'at sunset',
'at 05:30',
'at 23:45',
--'at 09:18',
--'at 09:19'
}
Apparently thre is something I don't know about the time triggers. What?
This is only a part of the log when domtoicz was running the trigger at 09:19 (that switched off my garden lights):
Code: Select all
2020-04-05 09:19:59.604 Status: EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
2020-04-05 09:19:59.699 Status: dzVents: Info: Handling events for: "Gårdsbelysning 2", value: "Off"
2020-04-05 09:19:59.699 Status: dzVents: Info: ------ Start internal script: Gårdsbelysningen: Device: "Gårdsbelysning 2 (Aeotec Z-stick GEN5)", Index: 122
2020-04-05 09:19:59.700 Status: dzVents: Info: Gårdsbelysningen kollas...
2020-04-05 09:19:59.700 Status: dzVents: Info: Gårdsbelysningen släcktes.
2020-04-05 09:19:59.700 Status: dzVents: Info: ------ Finished Gårdsbelysningen
2020-04-05 09:19:59.701 Status: EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
2020-04-05 09:19:59.814 Status: dzVents: Info: Handling events for: "Gårdsbelysning 2", value: "Off"
2020-04-05 09:19:59.814 Status: dzVents: Info: ------ Start internal script: Gårdsbelysningen: Device: "Gårdsbelysning 2 (Aeotec Z-stick GEN5)", Index: 122
2020-04-05 09:19:59.815 Status: dzVents: Info: Gårdsbelysningen kollas...
2020-04-05 09:19:59.816 Status: dzVents: Info: Gårdsbelysningen släcktes.
2020-04-05 09:19:59.816 Status: dzVents: Info: ------ Finished Gårdsbelysningen
2020-04-05 09:19:59.818 Status: EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
2020-04-05 09:19:59.937 Status: dzVents: Info: Handling events for: "Gårdsbelysning 2", value: "Off"
2020-04-05 09:19:59.938 Status: dzVents: Info: ------ Start internal script: Gårdsbelysningen: Device: "Gårdsbelysning 2 (Aeotec Z-stick GEN5)", Index: 122
2020-04-05 09:19:59.938 Status: dzVents: Info: Gårdsbelysningen kollas...
2020-04-05 09:19:59.939 Status: dzVents: Info: Gårdsbelysningen släcktes.
2020-04-05 09:19:59.939 Status: dzVents: Info: ------ Finished Gårdsbelysningen
2020-04-05 09:19:59.940 Status: EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
2020-04-05 09:20:00.031 Status: dzVents: Info: Handling events for: "Gårdsbelysning 2", value: "Off"
2020-04-05 09:20:00.031 Status: dzVents: Info: ------ Start internal script: Gårdsbelysningen: Device: "Gårdsbelysning 2 (Aeotec Z-stick GEN5)", Index: 122
2020-04-05 09:20:00.032 Status: dzVents: Info: Gårdsbelysningen kollas...
2020-04-05 09:20:00.032 Status: dzVents: Info: ------ Finished Gårdsbelysningen
2020-04-05 09:20:00.121 Status: dzVents: Info: Handling events for: "Gårdsbelysning 2", value: "Off"
2020-04-05 09:20:00.121 Status: dzVents: Info: ------ Start internal script: Gårdsbelysningen: Device: "Gårdsbelysning 2 (Aeotec Z-stick GEN5)", Index: 122
2020-04-05 09:20:00.122 Status: dzVents: Info: Gårdsbelysningen kollas...
2020-04-05 09:20:00.122 Status: dzVents: Info: ------ Finished Gårdsbelysningen
Thanks,
Peik