Page 1 of 1

Unit limit to 255 and read-only devices

Posted: Monday 16 October 2017 14:11
by Barberousse
Hello,

I'm writing a Python plugin to interface Domoticz to ebusd daemon. My problem is the 255 limit to Unit : ebusd exposes all ebus registers and there are fare more than 255:
  1. Is there a way to overcome this limit
  2. Or is there a way for the plugin to show an advanced parameters page, for the user to choose which registers they want to be exposed to Domoticz
  3. Another question: how can I set a device as read-only? Is this related to the type of device or is there an optionnal parameter when creating the device
Thank you

Re: Unit limit to 255 and read-only devices

Posted: Monday 23 October 2017 2:13
by Dnpwwo
@Barberousse,

1. The Python plugins are limited to 255 Units for backwards compatibility reasons, I don't think it would be easy to change.
2. No. Some plugins handle this (such as amplifiers allowing which media options) by having multiple delimited values in a single parameter.
3. I assume by making a device read-only you mean that only the plugin can write to it? If so, users can change switches but sensor device types are read-only.