Devices list empty from python plugins

Python and python framework

Moderator: leecollings

Post Reply
mcflyyy
Posts: 4
Joined: Sunday 05 April 2015 11:57
Target OS: -
Domoticz version:
Contact:

Devices list empty from python plugins

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest