Script not switching switch

Hi all!

Weird thing.

I have three z-wave devices, that turn on (only if they are not already on), when I open my back door at night. Two switches and one dimmer (light). The script automatically turns them off after x minutes.
One of these is not working as it should. The script is called, and runs through the delay. Script is unable to turn on or off the device.

Each device has it’s own 2 scripts, and an automation for each device calling the first script. When I add the switch directly to my automation, it does work…

Anyone seen this behavior before?

I can work around the issue by calling another automation to switch the light off, but it just seems weird to me.

post the code.

make sure when you do that you select it all and hit the preformatted text icon above ( </> ).

1 Like

thanks for the help, I was editing the wrong file… My bad! Sorry :slight_smile: