Page 1 of 1
.forMin() no longer working
Posted: Tuesday 16 January 2018 9:13
by emme
Ciao,
rPI running Domoticz 3.8805
got few cripts to wake me up in the morning...
one of there takes care about radio FM on a volumio device and the command is:
dz.devices('vBagnetto').switchSelector(10).forMin(45)
volumio powers up correctly, but it does not power off anymore....
is anyone experiencing the same?...
ciao
M
Re: .forMin() no longer working
Posted: Tuesday 16 January 2018 14:59
by dannybloe
Yes, that's a bug in Domoticz. We fixed that in the pull-request for dzVents 2.4.
Re: .forMin() no longer working
Posted: Tuesday 16 January 2018 15:04
by emme
ok.. thanks
Re: .forMin() no longer working
Posted: Tuesday 16 January 2018 16:54
by anasazi
dannybloe wrote: Tuesday 16 January 2018 14:59
Yes, that's a bug in Domoticz. We fixed that in the pull-request for dzVents 2.4.
Hi,
Does that mean that version 2.4 of dzVents is included in the beta of Domoticz?
Re: .forMin() no longer working
Posted: Tuesday 16 January 2018 16:57
by dannybloe
Not before the PR gets merged. It’s ready though.
Re: .forMin() no longer working
Posted: Sunday 04 February 2018 18:41
by Aad3229
Is this fixed in 3.8873?
Re: .forMin() no longer working
Posted: Sunday 04 February 2018 19:21
by dannybloe
Yes
Re: .forMin() no longer working
Posted: Sunday 04 February 2018 20:49
by Aad3229
I am on 3.8873 but the forMin() is not working. My Pir switches on a switch. The switch goes on, but stays on (I waited 5 minutes), even is the PIR is not triggered anymore:
Code: Select all
return {
on =
{
devices = {'PIR*'},
},
execute = function(domoticz, detector)
--domoticz.log(detector.state)
--domoticz.log(domoticz.security)
if (detector.state == 'On') then
if domoticz.devices(IsDonkerLux).state == 'On' then
domoticz.devices(Test_Switch).switchOn().forMin(2)
domoticz.log('licht aan')
end
end
end
}