Flow using virtual device (mode) and sun sets (sun rises)

Dear all,

I m trying to set up a flow which does something when my virtual device is ON, and when the sun sets!
However it looks like the options change:

  • When the sun sets only leaves the option “VD is turned ON”
  • When the VD is “ON” only leaves the option “after sun set”

What bis the logic !??

Manythanks for your help

In the When… section only trigger cards are available. Trigger means status changes. Status changes are very short actions in time. E.g. something like “switched on”, the time changes from 10:00 to 10:01 (it’s less than a second), temperature changes from 14.2 to 14.3 °C, the sun sets (it’s handled like the time), a variable changes from Yes to No…

In the And… section only condition cards are available. Conditions are something like “is on” (not switched on!!!), it’s after sun set, it’s < 14.2 °C, the music plays…

So the only way is:

When…
– The sun sets
And…
– VD is ON
Then…
– whatever

I hope I was able to clarify the logic a bit.

Many thanks for your reply. This is indeed what I anticipated. However, if I select “the sun sets” in the “when” section, I m left with “is turned ON” in the AND section. No way to select " IS ON"
There must be a reason!

Maybe it’s a translation mistake. Could you share your flow please.

1 Like

You can use this in the AND section, for your purpose.

My flow is as follow:

I have created a virtual device called “Absence”, that can be turned ON/OFF Zwave button

What I m trying to implement, is a flow which turns a light ON when the sun sets, IF the “Absence” mode is ON.

In other words, I would like my flow to be:

WHEN: “The sun sets”
AND: “Absence mode is ON”
THEN: “Turn the light ON”

However, once “the sun sets” is selected, the “Absence mode is ON” is not available in the “AND section”. The only choice is “Is turned ON”, which I guess refers to a change of state (from OFF->ON)

image
image

I have done a quick check -replacing “the sun sets” by a fixed time, looks like indeed “mode is turned ON” doesnt not does refer to a change of state but rather to its actual state (“is ON”)

many thanks to all

As I tried to explain, in the section And… (Und…) there are only condition cards (in your words: actual state) available.


Sorry, only in German language.

But it’s good that you understand it now.