Blockly: Strange behaviour when using illumination LUX

Moderator: leecollings

Post Reply
Olgmo
Posts: 23
Joined: Tuesday 28 June 2016 12:24
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Location: Norway
Contact:

Blockly: Strange behaviour when using illumination LUX

Post by Olgmo »

I have set up dimmable lights to go on when LUX is less than 100 and this works, but only partly.
If I from GUI adjust the dimmer, let say to 33%, the blockly script will be trigged on new PIR detection and change the value back to 66%.
Why does PIR detection do anything in this script when only illumination is in the blockly and value is less that 100 :?:

I use a Philio PST02-A 4 in 1 multisensor.

Image
"Lysmåler STUE" = "LUX sensor livingroom"
User avatar
StanHD
Posts: 347
Joined: Friday 12 July 2013 16:09
Target OS: Windows
Domoticz version:
Location: East Sussex, UK
Contact:

Re: Blockly: Strange behaviour when using illumination LUX

Post by StanHD »

I can't see from your screen shot if you have an "Else If"? If you do not then you have used the wrong control block. It should be the one without the blue symbol top left.
Domoticz Main - Intel nuc, Windows, RFXTRX433E. Lan Relay Boards, Aeon Z-Stick Gen 5, Evohome HGI80, Milight WiFi, MySensors Ethernet Gateway, Harmony Hub
Python:- Broadlink RM2, Sonos
HA-Bridge - Amazon Echo / Alexa
booster
Posts: 34
Joined: Wednesday 10 December 2014 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Rijssen, The Netherlands
Contact:

Re: Blockly: Strange behaviour when using illumination LUX

Post by booster »

The event will be triggered every time any of the values change...if LUX was (let's say) 90, it will trigger the script, but when LUX drops lower (eg when you dim the lights perhaps?), it will trigger this script again.

You can solve it with a dummy switch which you enable first time and then verify in your if statemen that it needs to be disabled.
Connected to:
-Pi3; Aeon Labs Z-Stick; Fibaro Switches, Roller Shutter and Motion Sensors; Qubino Dimmers; P1 Port + Youless, MiLight; HUE Bridge; Forest shuttle Z-Wave; RFLink + KAKU; Voltcraft CO20; Everspring floodsensors; GreenWave PN-6; NEO Sensors
Olgmo
Posts: 23
Joined: Tuesday 28 June 2016 12:24
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Location: Norway
Contact:

Re: RE: Re: Blockly: Strange behaviour when using illumination LUX

Post by Olgmo »

booster wrote:The event will be triggered every time any of the values change...if LUX was (let's say) 90, it will trigger the script, but when LUX drops lower (eg when you dim the lights perhaps?), it will trigger this script again.

You can solve it with a dummy switch which you enable first time and then verify in your if statemen that it needs to be disabled.
Aha, thanks. That I can do...
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest