After migrating to the newest version of Domoticz my climatControl scripts (written in dzVents) stopped working.
Based on the temperature and humidity in our home certain user variables are regularly set.
Based on several time scripts the mechanical fan should switch to a lower or higher RPM (DIMMER 0-10V Z-WAVE)
Tried to get this working again but somehow I can't. Even the log line doesn't work.
Running virtualized domoticz server on a proxmox cluster with a slave for optimal RFX communication. Using Aeotec Z-Stick Gen5, rfxtrx433e, Homebridge and a Philips HUE bridge for all sort of home automation.
return {
active = true,
on = {
['timer'] = {'at 21:14'}
},
logging = {
level = domoticz.LOG_DEBUG,
},
execute = function(dz)
fan = dz.devices('Mechanische Ventilatie')
target = dz.variables('climatControlBaselinePostCooking').value
dz.log('Mechanische ventilatie snelheid wordt aangepast (Post-Cooking) - Level: ' .. target )
fan.switchSelector(target)
end
}
Running virtualized domoticz server on a proxmox cluster with a slave for optimal RFX communication. Using Aeotec Z-Stick Gen5, rfxtrx433e, Homebridge and a Philips HUE bridge for all sort of home automation.
Running virtualized domoticz server on a proxmox cluster with a slave for optimal RFX communication. Using Aeotec Z-Stick Gen5, rfxtrx433e, Homebridge and a Philips HUE bridge for all sort of home automation.
if (dz.devices('Kominek').state == 'On' and dz.variables('kominek').value == 0) then
dz.devices('Kominek Wentylator').switchOn()
dz.devices('Kominek przepustnica').switchSelector(60)
dz.log('Rozpalanie')
The position of the selector 60 is the name of the level.
Level 1 is Off, 2 is 10, 3 is 20 etc.
Running virtualized domoticz server on a proxmox cluster with a slave for optimal RFX communication. Using Aeotec Z-Stick Gen5, rfxtrx433e, Homebridge and a Philips HUE bridge for all sort of home automation.
Schermafbeelding 2020-06-01 om 22.52.38.png (140.41 KiB) Viewed 1684 times
Schermafbeelding 2020-06-01 om 22.52.29.png (399.51 KiB) Viewed 1684 times
Running virtualized domoticz server on a proxmox cluster with a slave for optimal RFX communication. Using Aeotec Z-Stick Gen5, rfxtrx433e, Homebridge and a Philips HUE bridge for all sort of home automation.
That indeed was the probleem. No sure why it worked in older versions of Domoticz because this script was from a post 2020 release
Running virtualized domoticz server on a proxmox cluster with a slave for optimal RFX communication. Using Aeotec Z-Stick Gen5, rfxtrx433e, Homebridge and a Philips HUE bridge for all sort of home automation.
return {
active = true,
on = {
['timer'] = {'at 18:30'}
},
execute = function(domoticz)
domoticz.log('Ventilatie op post-kookstand')
domoticz.devices('Mechanische Ventilatie').switchSelector(domoticz.variables('climatControlBaselinePostCooking').value)
end
}
Running virtualized domoticz server on a proxmox cluster with a slave for optimal RFX communication. Using Aeotec Z-Stick Gen5, rfxtrx433e, Homebridge and a Philips HUE bridge for all sort of home automation.
RvdM wrote: ↑Monday 01 June 2020 23:23
Just started up the old machine.
Could well be that this switchSelector() method worked in your old version. It was never intended to work on a dimmer device and since the change in the switchSelector code in dzVents 2.4.22 it no longer work for dimmers.