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

Trigger automation based on scene activated

$
0
0

@trondat wrote:

Hi,

Every morning i activate the scene “Morgen” so that lights etc come on. I also want to add some more logic to this and have written an automation that should trigger when scene “morgen” is activated. The problem is that the automation is never triggered. I have tried with the condition commented away, but still no luck.

alias: 'Turn on lights when Morgen'
    trigger:
       platform: event
       event_type: call_service
       event_data:
         service_data:
           entity_id: scene.morgen
         domain: scene
         service: turn_on
    condition:
       condition: numeric_state
       entity_id: sensor.sensative_strips_comfort_luminance
       below: 10
    action:
       - service: light.turn_on
         data:
           entity_id: light.stuevinduer
           brightness: 70
       - service: light.turn_on
         data: 
           entity_id: light.spisestuebord       
           brightness: 183
           rgb_color: [255,163,74]    

Does anyone have some pointers to what is wrong here ?

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 95370

Trending Articles



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