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

How to have script accept entity_id the same way as most service calls?

$
0
0

@mot359 wrote:

I want to use a script to wrap a light.turn_on service call with a bunch of default params prepopulated so I don’t have to pass the same thing everywhere (e.g defaulting a color). I use both forms of entity_id: <string> and entity_id: <list> across my config and am wondering the best way to have the script recognize either format in the data_template section?

Posts: 2

Participants: 2

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>