i am on domoticz v2026.1 (build 17920)
dzVents 3.1.11
why dzVents engine stops ?
No warnings
It is very ennoying because you expect the scripts running and not at all.
how to check easily the dzVents working?
The scipts are running for a long time and one day tonanother it stops unexpectedly.
as an example the script used
Code: Select all
return {
active = true,
on = {
devices = { 'Garage_ouvert' }
},
logging = {
level = domoticz.LOG_INFO,
marker = 'GarageAutoClose'
},
execute = function(domoticz, device)
local tempo = 60 -- secondes
local contact = domoticz.devices('Garage_ouvert')
local porte = domoticz.devices('Porte_Garage')
-- ==========================================
-- PORTE OUVERTE
-- ==========================================
if contact.state == 'On' then
domoticz.log('Garage_ouvert -> fermeture dans '..tempo..' sec', domoticz.LOG_INFO)
-- évite les doublons si le contact se réactualise
porte.cancelQueuedCommands()
-- programme la fermeture
porte.switchOn().afterSec(tempo)
end
-- ==========================================
-- PORTE REFERMEE
-- ==========================================
if contact.state == 'Off' then
domoticz.log('Porte refermee -> annulation fermeture auto', domoticz.LOG_INFO)
-- annule la fermeture programmée
porte.cancelQueuedCommands()
end
end
}