apc-notification-not-online.yaml 433 Bytes
Newer Older
Erick Hitter's avatar
Erick Hitter committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14
alias: Notify when APC not online
trigger:
  platform: state
  entity_id: sensor.ups_status
  from: "ONLINE"
action:
  - service: notify.jabber
    data:
      message: "Office APC has status \"{{ states( 'sensor.ups_status' ) }}\""
      target: !secret jabber_recipient
  - service: notify.slack
    data:
      message: ":exclamation: :battery: Office APC has status \"{{ states( 'sensor.ups_status' ) }}\""
      target: '#home'