DanielWinks / HassOS-Addons

MIT License
20 stars 5 forks source link

unary operator fix #15

Closed tafypz closed 1 year ago

tafypz commented 1 year ago

Fixes Adding custom protocols #9

DanielWinks commented 1 year ago

This PR would likely break things for people running 433MHz sensors.

I've merged the python parts into the device builder script, so you can specify minka_rc400 in the add-on config. You'll need to put the flex handler in the flex.conf file.

And on that note, I fixed the flex config handling. Previously it added everything in the folder, but I think at some point I rebased the add-on from Debian to the standard Alpine image for HA add-ons. Which changed the shell from bash to ash, and that broke things. Since I wasn't using any flex handlers, I didn't notice.

Now, rather than appending all the *.conf files in the folder, it just pulls in the contents of "flex.conf", which by default would be created at /share/rattler/flex.conf now. You can put the minka remote config there. I can't include it by default since it changes the frequency from 433MHz, which is what most users of this add-on expect.