Page 1 of 1

Hue screen automation

Posted: Sunday 17 November 2024 11:40
by gerardsoraya
Hello,

I have a hue motion sensor.
Here you get the input lux from.
I have a blockly made:
If lix is lower than 20 lux screen goes down else screen open.
My wife wantet to open and close the screen also during the Day and the sun getting in to the living room.
The lux sensor is outside under the carport.
The situation now is when the screen is open and she closes it it goes automatic open.
Does anyone have an idea to overrule the blockly?

Re: Hue screen automation

Posted: Sunday 17 November 2024 12:44
by waltervl
Instead of triggered on lux use a time (based on sunset)?
Now it seems that if it is almost dark outside in the evening you want to lower the screen. And when it is getting light in the morning open the screen again.
So instead of a blockly script you also can set a timer on the screen device based on local Sunset en Sunrise times. See wiki for more info: https://wiki.domoticz.com/Managing_Devi ... ice_Timers

Alternative you can set a dzvents script that will only run during night time. So if your wife wants to do something during daytime nothing will be interrupted. I dont think Blockly can handle this but someone else can correct me if I am wrong.

Edit I am wrong. You can add if statement to check also on time, see the first blockly example on the wiki: https://wiki.domoticz.com/Blockly