Daytime / Night time lights

PeterSWE
Tue, 13 Feb 2024 12:26:11 +0000
Flows

Hi,

I’m “migrating” over to Homey from Domoticz and Blockly and need help with understanding the logic in Flows, specifically how I can achieve turn on / off lights at sunset / sunrise IF it is between a set time.

Ie in Blockly I had a flow that went

If
Virtual device Night == TRUE
AND Time > 06.00 AND < 08:00
AND Light switch == OFF
Do
Light switch == ON

Meaning by this is that sunrise can occur at 02.00 in the morning and I have no need for it to turn on at 02, I want it to turn on at 06. Equally the other way around, sometimes sunset is at 22.00 in the evening, I do not need it to turn on then.

I tried mimic above with a Homey flow but failed. I setup the experimental Virtual Devices and I tried adding the Better Logic app, but I got so far that I failed on the “AND Light Switch == OFF” in the flow, I could only select “Activated”, or “On” I assume it means, in the And… part of the flow when I selected my dimmer light.

How can I make sure that the flow isn’t firing ON triggers constantly between the hours of 06 and 08?

Or perhaps the logic is just different in Homey… Willing to learn new ways without Virtual Devices if I get pointers in the right direction.

Thanks.

15 posts - 8 participants