How to turn OFF Shelly One

The outside lighting of my property is controlled using a Shelly One relay and physical momentary switches. I have created an automation to switch on the lights at dusk and then off again at 23:00hrs. Switching the lights on is no problem but I cannot get the lights to switch off using the automation. If I use the physical switch it works fine, if I use an entity card on my lovelace view it works fine but using various commands in an automation will not work.i.e. H A toggle, HA Switch off, Switch off. would be grateful for suggestions.

It helps to show your automation, and if you have a trace of the automation, that is helpfull too. The trace often shows why an automation did not proceed.

1 Like

We need to see the YAML you are trying that is failing.