plugins : max 255 devices

Python and python framework

Moderator: leecollings

Post Reply
JonasF
Posts: 4
Joined: Saturday 18 March 2017 12:52
Target OS: Linux
Domoticz version: beta
Location: France
Contact:

plugins : max 255 devices

Post by JonasF »

Hi

I discover domoticz. I would like to write a plugin for externals devices with homemade protocol and look possibilities with domoticz python plugins.

Can you confirm me that are limited to 255 devices ? (The dico Devices keys are 'unit' limited to 255).
Is not it possible to make several Devices with the same key but a different hardwareID? (Like dummy devices)
User avatar
Dnpwwo
Posts: 819
Joined: Sunday 23 March 2014 9:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

Re: plugins : max 255 devices

Post by Dnpwwo »

@ JonasF,

Domoticz does limit external hardware instances (C++ or Python) to only 255 devices.

Do you have more than 255 devices you need to control or just external device numbers greater than 255? If the latter then Domoticz has a DeviceID field that you can use rather than the Unit field. This can be set during device creation and is available in the Devices dictionary entries. AFAIK there are no restrictions or format or uniqueness so you can do what you want with it.
The reasonable man adapts himself to the world; the unreasonable one persists to adapt the world to himself. Therefore all progress depends on the unreasonable man. George Bernard Shaw
JonasF
Posts: 4
Joined: Saturday 18 March 2017 12:52
Target OS: Linux
Domoticz version: beta
Location: France
Contact:

Re: plugins : max 255 devices

Post by JonasF »

I do not think I will have more than 255 devices (but it's technically be possible). But as all the dummy device on "'unit' == 1" I thought I misunderstood.

Thank you for the quick reply
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests