DamianFlynn / cgate-mqtt

MQTT interface for C-Bus written in Node.js
MIT License
8 stars 2 forks source link

Add C-Bus Lighting Label management #12

Open tomtokic opened 5 months ago

tomtokic commented 5 months ago

C-Bus lighting groups have the ability to have a label. This is used on the eDLT light switches.

There is an ability to send a label to a lighting group, but it does not appear possible (unless I am missing something).

Would it be able to be implemented? I'm happy to help test.

Protocol documentation for Clipsal C-Bus is here. Review Label in the lighting doc. https://updates.clipsal.com/downloads/cis/C-Bus Protocol Public Release.zip

I have been using an alternate system called Indigo Domotics. There was a plugin for that system that I have been using to do this up until now, it has been rock solid.

Refer to the "updateDLTlabel function, line 774 in plugin.py. https://github.com/KieranBroadfoot/C-Bus.indigoPlugin/blob/master/Contents/Server%20Plugin/plugin.py

DamianFlynn commented 5 months ago

Interesting, I was not aware of the label commands.

The Doc's linked refer to the PCI protocol, which is what c-gate is speaking to the Bus, so in this implementation i would need to bypass C-Gate; so other projects do that, including work I done a few years ago with Elve, but I have not had bandwidth to take that on just yet.

Now, the Indigo plugin, that looks to speak to cgate. If i have understood correctly, i can send a string lighting label //CBUS/254/56 1 94 - text hello

Ill take a shot at this for you, but I have no DLT pads, so you will have to test. Ill update here with a PR

tomtokic commented 5 months ago

Thanks Damian, yes all my Comms are via cgate, so I believe your hello text comment/command is correct. Thanks for trying, I am happy to test.

Cheers

Tom

On 9 Apr 2024, at 8:56 PM, Damian Flynn @.***> wrote:



Interesting, I was not aware of the label commands.

The Doc's linked refer to the PCI protocol, which is what c-gate is speaking to the Bus, so in this implementation i would need to bypass C-Gate; so other projects do that, including work I done a few years ago with Elve, but I have not had bandwidth to take that on just yet.

Now, the Indigo plugin, that looks to speak to cgate. If i have understood correctly, i can send a string lighting label //CBUS/254/56 1 94 - text hello

Ill take a shot at this for you, but I have no DLT pads, so you will have to test. Ill update here with a PR

— Reply to this email directly, view it on GitHubhttps://github.com/DamianFlynn/cgate-mqtt/issues/12#issuecomment-2044710998, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQUKQBQOLHNVVFSOBNAIG4DY4PCPJAVCNFSM6AAAAABF4BMCTWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBUG4YTAOJZHA. You are receiving this because you authored the thread.Message ID: @.***>