Issues with Nest?

Hello,

I have been having issues with getting the nest to work with home and away mode (turn on and off eco mode). The Lights turn off and on reliably, but I have been having issues getting the Nest to work reliably. When I try to manually trigger, the nest works as expected, and the logs show that the trigger happens, so I am unsure of why it does not work. I have home and away trigger two different automations as shown below, and I am partially wondering if having one trigger trigger multiple automations could be the issue.

Thank you in advance for any help!

- alias: Home Lights While Dark
  id: '1523670293248'
  trigger:
  - platform: state
    entity_id: device_tracker.nexus_5x
    to: home
  - platform: state
    entity_id: device_tracker.jens_iphone
    to: home
  condition:
    condition: or
    conditions:
    - condition: sun
      after: sunset
    - condition: sun
      before: sunrise
  action:
  - service: light.turn_on
    data:
      entity_id: light.living_room

- alias: Away Lights off
  id: '1523801495348'
  trigger:
  - platform: state
    entity_id: device_tracker.nexus_5x
    to: not_home
  - platform: state
    entity_id: device_tracker.jens_iphone
    to: not_home
  condition:
  - condition: state
    entity_id: device_tracker.jens_iphone
    state: not_home
  - condition: state
    entity_id: device_tracker.nexus_5x
    state: not_home
  action:
  - service: light.turn_off
    data:
      entity_id: light.living_room, light.kitchen, light.my_room, light.hallway

- alias: Home Nest
  id: '1523671032970'
  trigger:
  - platform: state
    entity_id: device_tracker.nexus_5x
    to: home
  - platform: state
    entity_id: device_tracker.jens_iphone
    to: home
  action:
  - service: nest.set_mode
    data:
      home_mode: home

- alias: Away Nest
  id: '1523671083914'
  trigger:
  - platform: state
    entity_id: device_tracker.nexus_5x
    to: not_home
  - platform: state
    entity_id: device_tracker.jens_iphone
    to: not_home
  condition:
  - condition: state
    entity_id: device_tracker.jens_iphone
    state: not_home
  - condition: state
    entity_id: device_tracker.nexus_5x
    state: not_home
  action:
  - service: nest.set_mode
    data:
      home_mode: away