I did the same thing with my solar panels. It took forever to figure it all out. I just wanted it to read me back a value from an API call, that's it.
What I really wanted to do was ask it, what is the solar production so far for today, what is the current output right now, what has the output been for this month, etc.
I hacked a hello world example to hardcore a response for the first question, and gave up being fancy and I gave up in trying to do the rest.