.forMin() no longer working

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

Post Reply
User avatar
emme
Posts: 909
Joined: Monday 27 June 2016 11:02
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Milano, Italy
Contact:

.forMin() no longer working

Post 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?... :roll: :roll:
ciao
M
The most dangerous phrase in any language is:
"We always done this way"
dannybloe
Posts: 1355
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Ermelo
Contact:

Re: .forMin() no longer working

Post by dannybloe »

Yes, that's a bug in Domoticz. We fixed that in the pull-request for dzVents 2.4.
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
User avatar
emme
Posts: 909
Joined: Monday 27 June 2016 11:02
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Milano, Italy
Contact:

Re: .forMin() no longer working

Post by emme »

ok.. thanks
The most dangerous phrase in any language is:
"We always done this way"
anasazi
Posts: 43
Joined: Saturday 06 August 2016 9:53
Target OS: Windows
Domoticz version:
Location: Sweden
Contact:

Re: .forMin() no longer working

Post 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?
dannybloe
Posts: 1355
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Ermelo
Contact:

Re: .forMin() no longer working

Post by dannybloe »

Not before the PR gets merged. It’s ready though.
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
Aad3229
Posts: 18
Joined: Wednesday 07 January 2015 10:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: NL
Contact:

Re: .forMin() no longer working

Post by Aad3229 »

Is this fixed in 3.8873?
Domoticz V4.10717 on Synology, RFXtrx433E USB 433.92MHz Transceiver, 9 x KAKU Switch (APA3-1500R), 1 x ABST-604 KAKU Dusk sensor, MiLight iBox V6, OpenZwave USB-stick Aeon LabS, Zwave PIR, Zwave door sensors, Zwave powerplugs
dannybloe
Posts: 1355
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Ermelo
Contact:

Re: .forMin() no longer working

Post by dannybloe »

Yes
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
Aad3229
Posts: 18
Joined: Wednesday 07 January 2015 10:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: NL
Contact:

Re: .forMin() no longer working

Post 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
}
Domoticz V4.10717 on Synology, RFXtrx433E USB 433.92MHz Transceiver, 9 x KAKU Switch (APA3-1500R), 1 x ABST-604 KAKU Dusk sensor, MiLight iBox V6, OpenZwave USB-stick Aeon LabS, Zwave PIR, Zwave door sensors, Zwave powerplugs
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest