apc-notification-online.yaml 355 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 online
trigger:
  platform: state
  entity_id: sensor.ups_status
  to: "ONLINE"
action:
  - service: notify.jabber
    data:
      message: 'Office APC is "ONLINE"'
      target: !secret jabber_recipient
  - service: notify.slack
    data:
      message: ':exclamation: :electric_plug: Office APC is "ONLINE"'
      target: '#home'