Automation not working in HA

I have an issue with one of the automations:

- id: lounge night light
  alias: lounge night light
  trigger:
  - platform: state
    entity_id: binary_sensor.motion_sensor_158d0002233b41
    from: off
    to: on
  condition:
  - condition: state
    entity_id: media_player.lounge_apple_tv
    state: paused
  - condition: state
    entity_id: sun.sun
    state: below_horizon
  action:
    service: scene.turn_on
    entity_id: scene.lounge_night_light

It does look ok to me, but it’s not working.
Can you guys look at it and tell me whats wrong?

TIA

Bart

YAML will see on and change it to True. Same with off – it will change it to False. You have to quote on and off. There is a warning about this in the docs.

That’s it! I just noticed it looking at other working automation.
Thank you!