I’m trying to get a scene to work that allows me to press “Activate” and it will turn on a switch and turn off two other switches (this is working) and another scene to press activate and it will turn off a switch and turn off the other two, but only if the sun is down (this is not working). I hope someone can help. Thank you all in advance for your kind help. Here is the relevant part of my configuration.yaml file:
scene:
- name: Patio Lights - On
entities:
switch.ge_45605_duplex_receptacle_switch:
state: on
switch.ge_unknown_type4952_id3130_switch:
state: off
switch.ge_14291_inwall_smart_switch_switch:
state: off
- name: Patio Lights - Off
entities:
switch.ge_45605_duplex_receptacle_switch:
state: off
switch.ge_unknown_type4952_id3130_switch:
state: on
condition: state
entity_id: sun.sun
state: 'below_horizon'
switch.ge_14291_inwall_smart_switch_switch:
state: on
condition: state
entity_id: sun.sun
state: 'below_horizon'