Scenes and Rules?

Stew shared this idea 7 years ago
Completed

Hi,


I want to create a rule that only runs in certain scenes - how do I do that?


Thanks

Stew

Best Answer
photo

Make it like this:

>> Scene Holiday >> Turns on >> Virtual Swith Holiday


Then a rule:

When Virtual switch Holiday = On

Set bla bla

Replies (5)

photo
1

You can make a virtual switch and use it in de scene and rule.

photo
2

HeroS, thanks for that. I've looked at the virtual switch and have managed to link that into a rule well enough but the switch isn't in any way connected to the running of a specific scene.


Have I misunderstood what a scene should be used for?


What I want to do is run a specific scene e.g. On Vacation and have that execute a bunch of rules that have different schedulers to when I run the scene At Home, or At Work.


What I expected was that in rule builder I could define a rule that was something like "If Scene = 'On Vacation'....." or even "When (now between x and y) and (scene = 'On Vacation')...." could you explain how to achieve something similar?

photo
2

Make it like this:

>> Scene Holiday >> Turns on >> Virtual Swith Holiday


Then a rule:

When Virtual switch Holiday = On

Set bla bla

photo
1

Ah... OK, let me try that out


Thanks

photo
1

That works - Thanks :-)

Leave a Comment
 
Attach a file