Tutorial - Advanced automatic light control with flows

Nice tutorial! But I’m curious why you use virtual switches right in the flows and not virtual buttons with a variable? Now when you set a scene, you have to switch off all other scenes (virtual switches) in that flow.

For example:

  • You create 3 virtual buttons: normal, movie, candle
  • You create 1 variable: scene status
  • Then you create 3 flows. The only thing that those flows do is setting the variable ‘scene status’ to ‘normal’, ‘movie’ or ‘candle’.
  • Then you have you have 3 flows to set the lights. These flows are triggered by the variable that is changed. Like this for the ‘normal scene’: 'when logic ‘scene status’ is changed, and ‘scene status’ = ‘normal’ than dim lights to…

Now you never have to switch off the other scenes, becaus the variable ‘scene status’ can only have 1 vallue.

1 Like