Blockly Script Not Working - Hue Motion Sensor Topic is solved

Moderator: leecollings

Post Reply
mikedavies1953
Posts: 6
Joined: Thursday 09 January 2020 19:24
Target OS: Windows
Domoticz version:
Contact:

Blockly Script Not Working - Hue Motion Sensor

Post by mikedavies1953 »

I have two Philips Hue Motion Sensors which are working fine within Hue app and are recognised by Domoticz to the extent that I can use the temperature sensors in a Blockly script without a problem.

However, any attempt to use the motion sensor itself seems to fail even in a simple script such as the one below. Does anybody have any ideas? What am I doing wrong?
Attachments
Motion sensor demo.jpg
Motion sensor demo.jpg (22.19 KiB) Viewed 964 times
pdienaar01
Posts: 2
Joined: Saturday 13 June 2020 17:19
Target OS: Linux
Domoticz version:
Contact:

Re: Blockly Script Not Working - Hue Motion Sensor

Post by pdienaar01 »

Hi

You are using the wrong if control. you have to choice if control without blue field.

Piet
mikedavies1953
Posts: 6
Joined: Thursday 09 January 2020 19:24
Target OS: Windows
Domoticz version:
Contact:

Re: Blockly Script Not Working - Hue Motion Sensor

Post by mikedavies1953 »

That solved the problem.

I had reduced that script from a copy of another more complex one that included "Else If". It seems that, if there is only one set of "If Do" statements, it is necessary to use the single "If Do" logic block, i.e., the one without the blue gear icon.

Many thanks
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest