Hi All,
I’m struggling to get started with developing for Home Assistant. Not so much the coding aspect, though I’m not even there yet. I do have fair amount of programming experience in C languages and Python, but I don’t have experience working on an open source and large project such as Home Assistant.
First off, what I’m interested in developing right away is support for TP-Link light bulbs. Honestly, I think it’s mostly there in the pyHS100 file and just a “component” file is needed. (A tangential question is where is the pyHS100 in the HA distribution? I can find it other places on the Internet.) I’m also interested in understanding the development environment because I think I’ll be able to better understand how to configure HA on the top level. I find the documentation challenged, so being able to go through the source code will help. If it does help, then I can possibly provide more examples and contribute to the documentation - at least with the components I use.
Some basic questions:
- What’s the best IDE to work with? Maybe more basic - do you typically use an IDE to develop for HA? On other projects I’ve used MS Visual Studio, PyCharm, Idle, etc. My current configuration is with PyCharm only because I thought that was a good way to go with a large project.
- What’s the right way to create a new component, such has the TP-Link light bulb? I’ve read creating a custom-component directory and adding the component file there. That makes sense, but do then I Run HA from PyCharm? Should I copy the new component over to my HA server and restart it?
- Is anyone willing to share their general (or as specific as you would like) flow for developing for HA? I think that would be very useful.
Thanks!