micolous / cbus

Use Python to communicate with a Clipsal C-Bus PCI or CNI! Includes MQTT bridge (for Home Assistant), PCI simulator, and reverse engineering notes.
http://cbus.readthedocs.org/
GNU Lesser General Public License v3.0
49 stars 27 forks source link

cmqttd: Only show lighting group addresses which actually exist #26

Open Nik19792000 opened 3 years ago

Nik19792000 commented 3 years ago

First of all, this project is fantastic. It was super easy to link my C-Bus to Home-Assistant. The only slightly annoying part is, that there are automatically 256 devices and more than 500 entities, even though my C-Bus only has around 10 light groups. I understand the reason that C-Bus can theoretically address 256 items and this will allow to control all of them, but I have the following feature request:

  1. Discover how many devices/groups are actually in use and only make the same number discoverable in MQTT.
  2. If the first one is not possible, then add a docker start parameter, which allows to limit the number of devices.
micolous commented 3 years ago

Yup, I agree, it's on a TODO list. 😄

The other way around this is to use the CBZ to only report status for devices that are mentioned there; but this will force you to have a Toolkit Project.

On the C-Bus side, there's some group address status broadcast, but I'm unsure how reliable this is. I started implementing support for this a while ago. I think this only works when a load (ie: dimmer/relay) is assigned to a group address (so no virtual addresses).

beerygaz commented 2 years ago

This would be a big help when synchronising from HA to HomeKit too, as Homekit only supports 150 entities per bridge.