Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95919

Trouble with creating scene on the fly, flash lights, then restore scene

$
0
0

@EcoJoe wrote:

I’m working on setting up an automation when a certain NHL team scores, my lights flash red and then go back to their previous state. I have it successfully triggering and flashing red, but it isn’t reverting the light to it’s previous color and brightness, it stays red. Below is the script that I’m calling from the automation:

blackhawksgoal:
  sequence:
    - service: scene.create
      data_template:
        scene_id: before
        snapshot_entities:
          - light.couch_left:
    - service: light.turn_on
      data:
        entity_id: light.couch_left
        brightness: 255
        rgb_color: [255, 0, 0]
        flash: long
    - delay:
        seconds: 20
    - service: scene.turn_on
      data:
        entity_id: scene.before

Here is the documentation I was following for creating scenes on the fly - https://www.home-assistant.io/integrations/scene/#creating-scenes-on-the-fly

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>