alias: Notify when APC not online
trigger:
  platform: state
  entity_id: sensor.ups_status
  from: "ONLINE"
action:
  - service: notify.mattermost
    data:
      message: ":exclamation: :battery: Office APC has status \"{{ states( 'sensor.ups_status' ) }}\""
      target: '#home'