How to develop new decoder under Home Assistant OS #215
Replies: 1 comment 2 replies
-
Hi @TomyOne, Are you using Platformio to create and follow the Adding decoders instructions? If so, then there you will also find the test cases to which you can add test cases for your new decoder to build, run and verify in Platformio to check if everything is working fine. These test cases are also run when submitting to your new decoder branch. So they should always be used as a first step to verify that a new decoder is running without issues and as desired, before implementing the new decoder into any project like Gateway. You would need to fork Decoder, add you new decoder and also fork Theengs Gateway, update the Decoder submodule to your updated Decoder and then build and install (add-on in your case/docker/snap) and run it in your HA environment. We are currently thinking about the possibility of creating an easier way to test new decoder branches in HA, but the above is currently the only procedure. May I ask for which device you want to create this new decoder, as it might also be interesting to others and we could include it in the official Decoder release? |
Beta Was this translation helpful? Give feedback.
-
Hello,
I have installed Theengs Gateway as addon on Home Assistant OS:
https://gateway.theengs.io/install/install.html#install-theengs-gateway-as-an-add-on-in-home-assistant
It works great.
Now I would like to develop a new decoder.
The guides point me to this repo and they are clean I need to create new
*_json.h
.What is not clear for me how do I get this new decoder into running instance of Theengs Gateway?
The Home Assistant OS running on rpbi4 is a bit tricky with all the docker images, but I have access to all files there
and cannot find there any decoder built library.
Guides are clear what to add where, but I am missing information how to build library and how to test my changes.
Thank you.
T.
Beta Was this translation helpful? Give feedback.
All reactions