Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (14 sloc) 394 Bytes
- alias: WHEN office occupied on DO say something crazy
trigger:
- platform: state
entity_id: binary_sensor.office_occupied
to: 'on'
action:
service: script.office_hello
- alias: WHEN office occupied off DO say something crazy
trigger:
- platform: state
entity_id: binary_sensor.office_occupied
to: 'off'
action:
service: script.office_goodbye