That is only possible if the hardware device can report it's state back to the script. Then you can make a dzVents or lua script that update the state in Domoticz.
Then you also better do the on/off switching in that dzVents or lua script.
So if you switch the device on with the virtual switch the dzVents script will be triggered and send the command to your hardware.
dzVents later (after for example 30 sec) will ask the hardware what its state is (on/off) and will modify the state of the device. If the state is different you can send a notification or log an error in the logfile.
See for info about dzVents scripting:
https://www.domoticz.com/wiki/DzVents:_ ... _scripting
Script with virtual sensor send error
Moderator: leecollings
- waltervl
- Posts: 6681
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2025.1
- Location: NL
- Contact:
Re: Script with virtual sensor send error
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
- waltervl
- Posts: 6681
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2025.1
- Location: NL
- Contact:
Re: Script with virtual sensor send error
It appears it is possible without Domoticz scripting but use Espeasy configuration https://espeasy.readthedocs.io/en/lates ... /P029.html
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Who is online
Users browsing this forum: No registered users and 1 guest