The below Automation fires and I do receive the notification, however, my switch Action is not executed. Thoughts on this? Thanks.
- id: '123456789'
alias: Scott Home
trigger:
- entity_id: device_tracker.life360_scott
platform: state
to: home
condition: []
action:
- data:
message: Scott Home
service: notify.notify
- condition: state
entity_id: switch.living_room_webcam
state: 'off'