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

Automation Trigger Condition

$
0
0

@Wes93 wrote:

I need some help.
I want to make and automation that is triggered from others differents automations and depends of
what is make someting but i don’t know how:
Automation that Triggers:

- id: '1575543714469'
  alias: ProvaScriptSto
  description: ''
  trigger:
  - entity_id: alarm_control_panel.allarme
    platform: state
    to: disarmed
  condition: []
  action:
  - data:
      entity_id: automation.TestErrorAut
    service: automation.trigger

Automation that is triggered

- id: '1575544514622'
  alias: TestErrorAut
  description: ''
  trigger: []
  condition: []
  action:
  - data:
      message: "{% if trigger.entity_id == 'automation.A' %}\n  Funziona\
        \ Message A\n{% elif trigger.entity_id == 'automation.B' %}\n\
        \  TestB\n{% elif trigger.entity_id == 'automation.C'\
        \ %}\n  TestC\n\
        {% endif %}\n"
    service: notify.telegram

Posts: 14

Participants: 4

Read full topic


Viewing all articles
Browse latest Browse all 95533

Trending Articles



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