Solar Generation Monitoring

That was it! I understand now why you were doing it this way. I never actually approved my own API key to be authorized to my system. I did that and now everything works.
Thanks so much. Not sure what I’m going to do with it in my system now, but at least it’s there and working!

Since the linked code for local access to the envoy seems to no longer exist, I took a stab at this

Hi Ron,
I am having difficulty adding my system to ST. I think (and hope) I am just pasting the API info in the wrong spot. Can you please take a look and advise?

Thank you,

@AB4 you are not putting your preference values in correctly. Notice that the values are blank and the log says “Null”.

You just changed the “Labels” to the values. So undo that change. Past the code without changing it at all.

Then edit the device preference either in the IDE or in the android/iphone app to enter your system key, id and userid.

Bingo! That was it.

Thank you!!!

1 Like

How long did it take for your api authorization to work? I added my dev api to my system and am still getting “Not authorized to access requested resource” error when testing via the html. Or did a screw something up with my setup below?

@Automated_House From your screen shot looks like you configured wrong. You API settings says your user id is 4e54XXXXXXX but you entered that value into system_id and not user_id.

looks like you used your ST community user_id as your configured user_id which is wrong. Change that to the 4e54… number and find your system id and enter that correctly.

My system id is a 6 digit number. I bet yours is also. When you login to your system id will be in the url after you login.{your system id should be here}/arrays?range=today&view=energy_production

That did the trick! Thanks!

I’m not sure if you got this connected by now. If not you can get one of these and attach the current transformers in your panel. I like seeing the instantaneous output, rather than the 15-20 minute delay in the app. I used to have an electric vehicle and would charge my car during peak rates of my system was generating enough power. Since I had almost no peak usage, my excesses would get credited back to me against my off-peak so I figured it was the best way I could stick it to them and have my car charged sooner.

So interestingly enough, while perusing amazon for enphase products, I discovered that they sell a zigbee repeater

Hi @Ron I have tried to modify your driver for enphase for my solar inverter which is a zeversolar. I am not a programmer by any means. Are you or someone able to help out withe code. I can use the zevercloud API GET request and get a response with JSON-formatted data over the browser. But I am not sure how to get it to display in Smartthings.

API Get request:

Ive managed to run the GET cmd and get a response through Smartthings but get the following error:

1:10:17 PM: error groovy.lang.MissingPropertyException: No such property: E for class: @line 120 (doCall)

27e26bdb-a1ad-4bb2-98bb-8c47beff9fbb 1:10:17 PM: debug {“sid”:XXXX,“ludt”:“2020-04-05 13:09:56”,“E-Today”:{“unit”:“kWh”,“value”:11.7},“E-Month”:{“unit”:“kWh”,“value”:59.62},“E-Total”:{“unit”:“MWh”,“value”:15.82},“TotalYield”:{“unit”:"$",“value”:3875.98},“CO2Avoided”:{“unit”:“T”,“value”:8.7},“Power”:{“unit”:“kW”,“value”:1.55}}

27e26bdb-a1ad-4bb2-98bb-8c47beff9fbb 1:10:16 PM: debug