Page 1 of 1

Blockly Script Not Working - Hue Motion Sensor

Posted: Saturday 13 June 2020 14:52
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?

Re: Blockly Script Not Working - Hue Motion Sensor

Posted: Saturday 13 June 2020 17:27
by pdienaar01
Hi

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

Piet

Re: Blockly Script Not Working - Hue Motion Sensor

Posted: Saturday 13 June 2020 18:13
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