I am trying to set up a simple automation in HA, not Node Red. Automation is to turn a light on when a door opens but only when it's dark.
I thought that using a condition of sun, after sunset, before sunrise would achieve this but it does not work. I did read that below horizon is a better way to go but I couldnt see this option in any of the parameters.
