Can i test condition in template dev tool to see if they are true or false?
condition:
condition: and
conditions:
- condition: numeric_state
entity_id: sun.sun
value_template: '{{ state.attributes.elevation }}'
below: 10
- condition: time
before: '23:00'
- condition: state
entity_id: binary_sensor.motion_sensor_158d0001186077
state: 'off'