.forMin() no longer working

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

.forMin() no longer working

Post by emme » Tuesday 16 January 2018 10:13

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
That's one small step for a programmer, one giant leap for me!
- - - - -
Raspberry Pi3 + AeonStick G5 + RFXCOMM433 + iRTrans Server + NodeJS
There's no stress in the mess!!

dannybloe
Posts: 1259
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi
Domoticz version:
Location: Ermelo
Contact:

Re: .forMin() no longer working

Post by dannybloe » Tuesday 16 January 2018 15:59

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: 780
Joined: Monday 27 June 2016 11:02
Target OS: Raspberry Pi
Domoticz version: latest
Location: Milano, Italy
Contact:

Re: .forMin() no longer working

Post by emme » Tuesday 16 January 2018 16:04

ok.. thanks
That's one small step for a programmer, one giant leap for me!
- - - - -
Raspberry Pi3 + AeonStick G5 + RFXCOMM433 + iRTrans Server + NodeJS
There's no stress in the mess!!

anasazi
Posts: 69
Joined: Saturday 06 August 2016 9:53
Target OS: Windows
Domoticz version:
Location: Sweden
Contact:

Re: .forMin() no longer working

Post by anasazi » Tuesday 16 January 2018 17:54

dannybloe wrote:
Tuesday 16 January 2018 15: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: 1259
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi
Domoticz version:
Location: Ermelo
Contact:

Re: .forMin() no longer working

Post by dannybloe » Tuesday 16 January 2018 17:57

Not before the PR gets merged. It’s ready though.
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.

Aad3229
Posts: 23
Joined: Wednesday 07 January 2015 11:30
Target OS: Raspberry Pi
Domoticz version:
Location: NL
Contact:

Re: .forMin() no longer working

Post by Aad3229 » Sunday 04 February 2018 19:41

Is this fixed in 3.8873?
Domoticz V3.8922, RFXtrx433E USB 433.92MHz Transceiver, RaspberryPI 3, 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

dannybloe
Posts: 1259
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi
Domoticz version:
Location: Ermelo
Contact:

Re: .forMin() no longer working

Post by dannybloe » Sunday 04 February 2018 20:21

Yes
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.

Aad3229
Posts: 23
Joined: Wednesday 07 January 2015 11:30
Target OS: Raspberry Pi
Domoticz version:
Location: NL
Contact:

Re: .forMin() no longer working

Post by Aad3229 » Sunday 04 February 2018 21:49

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 V3.8922, RFXtrx433E USB 433.92MHz Transceiver, RaspberryPI 3, 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

Post Reply

Who is online

Users browsing this forum: kipusoep, triton and 1 guest