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

How to access scene definition in template/script/automation

$
0
0

Hi folks,

I was wondering if there is any chance to access the to be-state of an entity from a scene via template to be used in an automation or a script.

Background: Let’s say I have a scene dusk that defines the position of window covers to give some privacy when it starts to become darker outside. In my current set-up, this scene is activated by an outdoor light sensor. Now imagine that I already manually closed one of the covers completely. The activation of the scene would open the cover “again”. Hence, I’d like to write a template the only updates the state of the cover in case the current position is higher than the one defined in the scene. You could say a “activate scene but only move the covers down, never up” kind of script.

Thanks,
Rags

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 103354

Trending Articles



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