Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - alias: "Luci di Natale OFF"
- trigger:
- - platform: state
- entity_id:
- - device_tracker.oneplus_6
- - device_tracker.androidd6f
- - device_tracker.oneplus_3
- to: 'not_home'
- condition:
- condition: and
- conditions:
- - condition: state
- entity_id: device_tracker.oneplus_6
- state: 'not_home'
- - condition: and
- conditions:
- - condition: state
- entity_id: device_tracker.androidd6f
- state: 'not_home'
- - condition: and
- conditions:
- - condition: state
- entity_id: device_tracker.oneplus_3
- state: 'not_home'
- action:
- - service: notify.telegram
- data:
- message: 'Nessuno in casa - Luci di Natale OFF'
- - service: script.turn_on
- entity_id: script.meross_plug3_off
- - service: script.turn_on
- entity_id: script.meross_usb_off
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement