I (read Claude) just adapted a script from dzVents to python and put the python script in ~/domoticz/scripts/python
Both are running now and the output of the scripts is written to different files.
- is the place for python scripts ~/domoticz/scripts/python?
- what gives less stress to the system, a python script or a dzVents script
Python or dzVents
Moderator: leecollings
-
- Posts: 539
- Joined: Sunday 01 November 2015 22:45
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2023.2
- Location: Twente
- Contact:
Python or dzVents
Bugs bug me.
- heggink
- Posts: 972
- Joined: Tuesday 08 September 2015 21:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 12451
- Location: NL
- Contact:
Re: Python or dzVents
I quite like dzvents due to its simplicity and effectiveness. I have over 110 scrips with a system running at a few% CPU so minimal impact despite the hundreds of devices in my system. Domoticz is very efficient anyway.
I have never done any scripts in python but I have done a few plugins here and there where the complexity and vulnerability of that python subsystem always worried me (memory leaks, crashes). Dzvents can hardly crash your system, python absolutely can (and will
).
This, for me is one of the key reasons why I use domoitcz: efficiency, functionality and the power of dzvents. Then again, others may swear by python I suppose
.
I have never done any scripts in python but I have done a few plugins here and there where the complexity and vulnerability of that python subsystem always worried me (memory leaks, crashes). Dzvents can hardly crash your system, python absolutely can (and will

This, for me is one of the key reasons why I use domoitcz: efficiency, functionality and the power of dzvents. Then again, others may swear by python I suppose

Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
-
- Posts: 643
- Joined: Thursday 10 November 2016 9:30
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python or dzVents
Same answer: When complexity does not need all the python modules that can speed-up things a lot (even if their maintenance can also be problematic over time), stick to Lua (or dzVent that is a domoticz superset of pure Lua).
Lua is a language that was made to be embedded in programs & is very efficient for this + stable: I have scripts that did not change since 8 years of Domoticz. In Python, forget it!
I sometime regret plugins need python & not Lua...
Lua is a language that was made to be embedded in programs & is very efficient for this + stable: I have scripts that did not change since 8 years of Domoticz. In Python, forget it!
I sometime regret plugins need python & not Lua...
- waltervl
- Posts: 5397
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Python or dzVents
There is probably still some memory leak in python scripts. Check your memory usage to see if it is still there.
Also python script integration is very rudimental and not documented. I don't think there is a lot of difference in using dzvents (or Lua) on the stress level.
I would stay at Dzvents....
Also python script integration is very rudimental and not documented. I don't think there is a lot of difference in using dzvents (or Lua) on the stress level.
I would stay at Dzvents....
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
-
- Posts: 320
- Joined: Thursday 01 November 2018 19:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.6
- Location: Portugal
- Contact:
Re: Python or dzVents
Dzvents has been rock solid for me but python always brings versioning issues and this new venv stuff is tedious.
Intel NUC with Ubuntu Server VM (Proxmox),mosquitto(docker),RFXtrx433E,zwavejsUI (docker),Zigbee2mqtt(docker),SMA Hub (docker),Harmony Hub plugin, Kodi plugin,Homebridge(docker)+Google Home,APC UPS,SMA Modbus,Mitsubishi MQTT, Broadlink,Dombus
-
- Posts: 539
- Joined: Sunday 01 November 2015 22:45
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2023.2
- Location: Twente
- Contact:
Re: Python or dzVents
Thank you all for your comments.
I will do some python experimenting juist door the fun of doing so but I'll stick to dzVents.
Praise to the people who implemented it.
It's so dead easy to program and to maintain the scripts.
I will do some python experimenting juist door the fun of doing so but I'll stick to dzVents.
Praise to the people who implemented it.
It's so dead easy to program and to maintain the scripts.
Bugs bug me.
Who is online
Users browsing this forum: No registered users and 0 guests