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

Recursive snapshot_entities

$
0
0

@zhulik wrote:

Hello! I’m trying to builda script that saves and then restores states of my lights, there is a very useful feature in the scene.create service called snapshot_entities, but it seems like it is not recursive. This means it simply does not support snapshotting states of all members of groups recursively.

So if I try to snapshot a group:

  - service: scene.create
    data_template:
      scene_id: before
      snapshot_entities:
        - group.living_room

It saves the state of the whole group.

For example: I have my ceiling light switched off and my floor light switched on. I create a scene with the script from above. This group includes both of those lights. Then I apply a different scene for some time, and when I restore the initial state both bulbs in the group get the same state - the state of the floor light(which was also the state of the group).

Is it possible to snapshot states of groups recursively?

Thank you!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 96121

Trending Articles



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