I’m trying to create a Generic Transition for my lights that don’t support it natively. I’m having trouble getting the dynamic variable to work. With the script I am passing in the entity as the light variable:
I figured it out, apparently you can’t call the script if it is already ‘on’ so I just need to call the script.turn_off service before recursively calling it again… Now I have a generic transition that works with all my dimmable lights…
This had been working great but within the last update or two to HA it has stopped. The script seems to fire recursively as expected but the brightness does not increase… Anyone have any recommendations or thoughts?
I’m trying to create something similar: an automation whioch triggers on any scene activation but I’m struggeling with the entity_id part. Perhaps you can help me out?
- alias: 'Scene Activated Notification'
trigger:
platform: event
event_type: call_service
event_data:
service_data:
entity_id: ### what do I have to put here so it will trigger on every scene activation?
domain: scene
service: turn_on
action:
service: tts.amazon_polly_say
data_template:
entity_id: media_player.home_group
message: 'Scene Activated'
cache: false