Am I doing this wrong?
Posted: Wednesday 29 May 2024 13:03
This post is not about criticism. It may be that I cannot see the wood for the trees and need help.
So I have a single perfectly running python script that controls 35 IP devices with over 100 command rules. I send the results to Domoticz dummy devices for display using json.
The python initial command rule data is pulled into an array and various subroutines do magic to send up.down/stop on/off etc at the appropriate times.
I wanted to bring the functionality into Dzvents...
There are no arrays or subroutines that I can find....
It seems impossible to directly replicate one python script with one Dzvents script.
The, as far as I can tell, lack of subroutines makes my Dzvents script(s) incredibly verbose and the lack of arrays means that I need at least one script for every device.
So what have I got so badly wrong or misunderstood? Will I be better off using LUA or something else?
Again this is not criticism of Dzvents. I either need educating or need to use a different tool.
So I have a single perfectly running python script that controls 35 IP devices with over 100 command rules. I send the results to Domoticz dummy devices for display using json.
The python initial command rule data is pulled into an array and various subroutines do magic to send up.down/stop on/off etc at the appropriate times.
I wanted to bring the functionality into Dzvents...
There are no arrays or subroutines that I can find....
It seems impossible to directly replicate one python script with one Dzvents script.
The, as far as I can tell, lack of subroutines makes my Dzvents script(s) incredibly verbose and the lack of arrays means that I need at least one script for every device.
So what have I got so badly wrong or misunderstood? Will I be better off using LUA or something else?
Again this is not criticism of Dzvents. I either need educating or need to use a different tool.