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
Execute script from switch selector
Moderators: leecollings, remb0
-
- Posts: 55
- Joined: Sunday 23 October 2016 19:49
- Target OS: Linux
- Domoticz version: 4.10778
- Contact:
Execute script from switch selector
Domoticz Beta V4.11763 in Debian 10 VM
Domoticz Beta V4.11763 in RPI3
MDAH 0.2.42 + Imperihome Pro V4.3.17
App Android Domoticz Lite V0.2.201
Domoticz Beta V4.11763 in RPI3
MDAH 0.2.42 + Imperihome Pro V4.3.17
App Android Domoticz Lite V0.2.201
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Execute script from switch selector
That is not possible. The selector action field is to be used for external scripts / http calls.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 ??
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.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Who is online
Users browsing this forum: No registered users and 1 guest