Sleep IQ Automation Not Working

I can’t seem to get this automation to trigger:

- alias: Turn Off Lights, Lock Doors & Turn Fans On When In Bed
  initial_state: true
  trigger:
    platform: state
    entity_id: binary_sensor.sleepnumber_sleep_number_jeff_is_in_bed
    to: 'on'
  condition:
    condition: and
    conditions:
      - condition: state
        entity_id: binary_sensor.sleepnumber_sleep_number_lygea_is_in_bed
        state: 'on'
      - condition: state
        entity_id: sun.sun
        state: 'below horizon' 
  action:
    - service: homeassistant.turn_off
      entity_id: 
        - switch.cat_room_light
        - switch.upstairs_light
        - switch.foyer_light
        - switch.master_bathroom_light_switch
        - light.master_bedroom_level
        - light.dining_room_light
        - light.fireplace_light
        - light.living_room_light
    - service: homeassistant.turn_on
      entity_id:
        - switch.jeffs_fan
        - switch.lygeas_fan     
    - service: lock.lock
      data:   {"entity_id": "lock.schlage_be469_touchscreen_deadbolt_locked"}
    - service: locl.lock
      data: {"entity_id": "lock.kwikset_touchpad_electronic_deadbolt_locked"} 

The automation is on
Before I get in bed I check the states of the conditions and they both are satisfied.
I get into bed and my sensor state changes to ‘on’
This automation is never triggered according to the Logbook
All these actions work with different automations so I know they are correct
Generally my wife is in bed before me so that is why I set it up this way

Seems like this should be pretty straightforward but clearly I’m missing something here.

In case you’re still wondering about the problem in this automation: Indeed you’re missing something. Namely an underscore in the sun state condition. The correct state is “below_horizon”.