waaren wrote: ↑Monday 13 April 2020 21:22
molnaratti wrote: ↑Monday 13 April 2020 14:26
Thanks for the help.
Unfortunately, "every minute at nighttime" and "at sunset" doesn't work either.
Domoticz2020.1 (build 11835)
Checked this again but it is working as expected. Are you sure Eventsystem and dzVents are enabled ? I tested with the script below so you should see lines in the log like:
Code: Select all
2020-04-13 21:21:00.074 Status: dzVents: Info: ------ Start internal script: dz timer nighttime:, trigger: "at nighttime"
2020-04-13 21:21:00.074 Status: dzVents: !Info: item.trigger is: at nighttime
2020-04-13 21:21:00.075 Status: dzVents: Info: ------ Finished dz timer nighttime
Code: Select all
return
{
on =
{
timer =
{
'at nighttime',
},
devices =
{
'terasz mozgas'
}
},
logging =
{
level = domoticz.LOG_DEBUG,
marker = 'nighttime',
},
execute = function(dz, item)
dz.log('item.trigger is: ' .. item.trigger,dz.LOG_FORCE)
if item.isTimer then
-- the timer was triggered
dz.devices('terasz').switchOff()
dz.devices('Pince elott kulteri l').switchOff()
elseif item.isDevice and item.active) then
-- it must be the detector
dz.devices('terasz').switchOn().forMin(6)
dz.devices('Pince elott kulteri l').switchOn().forMin(6)
end
end
}
Yes, Eventsystem and dzVents enabled. I modified the script as suggested, but the nighttime log will not be:
2020-04-22 13:04:02.553 Status: dzVents: Write file: /home/pi/domoticz/scripts/dzVents/generated_scripts/Script #4.lua
"2020-04-22 12:57:00.742 Status: dzVents: Info: ------ Finished halo_ajto_warn
2020-04-22 12:57:00.742 Status: dzVents: Info: ------ Start internal script: halo_klima_futes_dz:, trigger: "at 7:30-21:46"
2020-04-22 12:57:00.753 Status: dzVents: Info: ------ Finished halo_klima_futes_dz
2020-04-22 12:57:00.753 Status: dzVents: Info: ------ Start internal script: hatso_ajto_warn:, trigger: "every minute"
2020-04-22 12:57:00.757 Status: dzVents: Info: ------ Finished hatso_ajto_warn
2020-04-22 12:57:00.758 Status: dzVents: Info: ------ Start internal script: Kandallo termosztát:, trigger: "every minute"
2020-04-22 12:57:00.766 Status: dzVents: Info: ------ Finished Kandallo termosztát
2020-04-22 12:57:00.767 Status: dzVents: Info: ------ Start internal script: radiator_dz:, trigger: "every minute"
2020-04-22 12:57:00.767 Status: dzVents: Info: ------ Finished radiator_dz"
i checked the raspberry clock with the date command, ok.
The problems came when updating to the new stable, now I switched to devel branch but it didn't solve.
I don't understand where the problem might be.
Thank you for your help, sorry for my bad English.