thejeffreystone / hassio_addons

Apache License 2.0
45 stars 26 forks source link

Feature Request: Support for custom decoders #17

Closed exeljb closed 2 years ago

exeljb commented 2 years ago

I have been messing around with a few new sensors using the original rtl-433 and a separate radio unit. That software supports custom decoders using a .conf file. How possible is it to add fields in the add-on config where we could place this custom decoder code so that the add on can implement these custom decoders in addition to the list of protocols that are built into the add on?

Here’s some example code for reference:

decoder n=Govee_H5054,m=OOK_PWM,s=440,l=940,g=900,r=9000,bits=48,get=id:@0:{16},get=event:@16:{16}:[1285:test 1028:leak_detected],get=battery:@16:{16}:[battery_empty 999:battery_25_percent 997:battery_50_percent 950:battery_75_percent 956:battery_75_percent 964:battery_75_percent 923:battery_full],get=heartbeat:@16:{16}:[514:heartbeat],unique
exeljb commented 2 years ago

upon looking more into it, I don't think this would be possible. it seems like rtl-433 would have to be recompiled to make use of any meaningful additions, which a decoder like the one i mentioned might not get implemented correctly anyhow.