Page 1 of 1

Execute script from switch selector

Posted: Saturday 21 March 2020 17:39
by gerardosamara
Hi ,

I could not find in the forum / wiki the solution.

I want to execute a script ( python for example) created using the internal interface ( Settings -> More options -> events ) , but the script is stored in the daba base and how to define the script path in the SELECTOR ACTION filed in the selector switch configuration

script ://name of the script ??

Thank you

Re: Execute script from switch selector

Posted: Saturday 21 March 2020 21:02
by waaren
gerardosamara wrote: Saturday 21 March 2020 17:39 I want to execute a script ( python for example) created using the internal interface ( Settings -> More options -> events ) , but the script is stored in the database and how to define the script path in the SELECTOR ACTION filed in the selector switch configuration
script ://name of the script ??
That is not possible. The selector action field is to be used for external scripts / http calls.
The domoticz event system scripts can be triggered by an update of the selector device and in the script logic you can evaluate the selector level and act based on that.