cancel
Showing results for 
Search instead for 
Did you mean: 

Make a variable action

KiLLerBoy_001
Community Member

What we trully need to make better home automations, is the need to set a custom variable that can then be used as a condition on other automations.. 

For example , Make the Automation that turns my lights one once the sun goes down set a custom Variable  like 
LightsOn = true 

 

When i then turn on my TV box it checks against this condition, if the condition of LightsOn = true then it should change colors of the lights, if not then it should not touch them in any form or way 
this then can set its own custom variable LightsinTVState = true and turn LightsOn to false.. 

so that when i turn off my TV box it should turn the lights back to the color they where before turning it on, but only if the state of LightsinTVState  is now in true.. 
 

1 REPLY 1

RoePer
Community Member

Hi team,  this is my very first interaction with this forum.  Scrolling through the forum posts your question comes closest to the problem I would like to solve:  I have some switches with schedules to power them on/off, but I don't want these schedules to run when I'm out on vacation or staying at my second residence. 

I can't find something like an environment variable that I could set to "we are away" ... If such a thing is not available I'm considering adding an extra plug that I would switch on when leaving "on vacation", and use its status as a condition for the scheduled actions to run unless, of course, someone has a more elegant solution.

Roeland