Hello people. The attached Blockly runs if it gets dark earlier than Sunset, using a Lux sensor as a trigger. Everything works fine, except the detection mechanism is a little hit-and-miss.
If the light level decays rapidly, it may never detect that window.
But if it decays slowly, the script may run multiple times, as it does if the window is set too wide.
It just needs to run once when the Lux falls below a set level sometime before Sunset.
I thought of setting a User Variable, and triggering off of that, but wondered if there isn't a neater way to do this.
TIA for any suggestions.
How to trigger and run just once a day
Moderator: leecollings
-
fargle
- Posts: 70
- Joined: Tuesday 27 March 2018 17:42
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: How to trigger and run just once a day
Answered my own question using a User Variable as a one-shot timer.
Who is online
Users browsing this forum: No registered users and 1 guest