Python scripts: Is there any real documentation?

Hi, I’d like to develop some python scripts…but why is there so few documentation?

How did-you learn to develop python script in HA?
I don’t find any real doc. It took me ages to create a simple script just because I had to search on the forum or google and try to guess how It works.

Also, It could be much easier to be able to debug the code. It seems to be possible but didn’t find a procedure

1 Like

I’d like to know the same. I’m cobbling scripts together by analysing existing scripts, but that’s no way to write code. Where’s the documentation on how to interact with the various “things” in HA?

1 Like

+1 & subscribed