Automation firing but not executing all Actions

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'

You don’t have a ‘switch’ action as such, you have a ‘switch’ condition. If you are wanting to switch the living_room_webcam off then you need to code it like this:

- 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
  - service: switch_turn_off
    entity_id: switch.living_room_webcam
    

Ah, got it, thanks.