Page 1 of 1

Devices list empty from python plugins

Posted: Saturday 30 October 2021 10:31
by mcflyyy
Hello,

I have a small problem to get the devices list from domoticz ...

I use this part of code :

if Devices:
Domoticz.Debug("Devices found")
for DOMDevice in Devices:
....

And this line always return 0 :
Domoticz.Debug("Device count: " + str(len(Devices)))

Do you have an idea ?

This script work very well on another domoticz instance.

Version : 2021.1 Build 13788
Python version : 3.8.10 - GCC 9.3.0

Regards,
Xavier.