#Manually run script to turn light on/off

1 messages · Page 1 of 1 (latest)

bright sapphire
#

Hey there! Is there a way to run a script (Python script for example) that will turn a specific light on or off?

tranquil jackal
#

Can you explain why you want to run a python script instead of using device states in HA?
And what's your intended trigger to run it manually? Something on a dashboard?

bright sapphire
#

I’m trying to add a custom command via wirepod to turn my light on or off

#

And my tiny brain came up with the idea to have a custom intent that runs a script telling HA to turn the lights on or off

tranquil jackal