alert-office-cabinet.yaml 344 Bytes
Newer Older
Erick Hitter's avatar
Erick Hitter committed
1 2 3 4 5 6 7 8 9 10 11 12 13
alias: Slack notification for office cabinet access
trigger:
  - platform: state
    entity_id: binary_sensor.office_cabinet
    to: "off"
  - platform: state
    entity_id: binary_sensor.office_cabinet_door_motion
    to: "on"
action:
  service: notify.slack
  data:
    message: ':bellhop_bell: *Office cabinet accessed*'
    target: '#home'