Supergiovane / node-red-contrib-knx-ultimate

Control your KNX intallation via Node-Red! A bunch of KNX nodes, with integrated Philips HUE control and ETS group address importer.
https://youtu.be/egRbR_KwP9I
MIT License
141 stars 34 forks source link

Custom DPT support #360

Closed ede1998 closed 1 month ago

ede1998 commented 1 month ago

Hello @Supergiovane, Thanks for merging my PR recently.

Is your feature request related to a problem? Please describe.

Just noticed that I have an actuator (Hager TXA223/225) for roller shutters in my KNX network that uses a non-standard message format to report its position. How can I handle parsing with node-red-contrib-knx-ultimate?

Describe the solution you'd like

Is there support for arbitrary custom DPTs? i.e. can I just provide my own DPT parser/serializer function somehow? What's your recommended approach? Didn't find anything like that at the first glance through the code/docs/issues.

Describe alternatives you've considered

Can I add my custom DPT to your DPT library? I see that there is another custom DPT already there (6001.001 I think). Though I don't know if there is any special DPT value assigned in ETS for my custom message. In the CSV export it reports as 5.001

Additional context Details for the DPT (sorry, only found a German description): Table describing meaning of bit patterns

Screenshot from this PDF: https://hager.com/intl-en/products/download/product/asset/file/TXA223_225_ETS_ROLLLADEN_IND_A_DE.PDF

Supergiovane commented 1 month ago

Hi Ylu can either use raw messages (please see the wiki), or add your own datapoint and make a PR Thanks

ede1998 commented 1 month ago

Thanks for the quick answer. I'll check it out tomorrow.