Unit limit to 255 and read-only devices

Python and python framework

Moderator: leecollings

Post Reply
Barberousse
Posts: 140
Joined: Wednesday 02 December 2015 21:47
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: France
Contact:

Unit limit to 255 and read-only devices

Post 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
User avatar
Dnpwwo
Posts: 820
Joined: Sunday 23 March 2014 9:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

Re: Unit limit to 255 and read-only devices

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

Who is online

Users browsing this forum: No registered users and 1 guest