Hello everyone,
I have what I hope is a noob problem here. I have a solar system installed on my house and I want to gather generation information that I can display or use as triggers. this information is available through an API and I finally figured out how to access that information. What I need to get done now is take the results and create the Virtual Devices, or at the very least, update Virtual Devices I would create myself (Once I figure out how to do that).
The URL to the API is something like (userID and Key intentionally left out):
https://api.enphaseenergy.com/api/v2...&user_id=My_ID
which would return a JSON that looks something like this:
{"system_id":SysID,"modules":31,"size_w":7690,"current_po wer ":914,"energy_today":13260,"energy_lifetime":109483300," summ ary_date":"2019-09-04","source":"microinverters","status":"normal","operation al _at":1201362300,"last_report_at":1567624045,"last_interval_ e nd_at":1567623262}
I tried using the Big5 PI to ingest these values, but it seems to only create a single virtual device with a single string that I don't think I can use. I am comfortable with scripting and such, just not in VB, or with HS for that matter.
Ideally, the script would go out to the API and gather all available results and create (or update) Virtual Devices. I would like to gather all of the data in a single call to limit the number of hits on the API since I only get 10000 hits per month, leaving my queries to every 5 min during daytime hours.
Any assistance you could provide in accomplishing what I hope is a simple task would be very much appreciated.
I have what I hope is a noob problem here. I have a solar system installed on my house and I want to gather generation information that I can display or use as triggers. this information is available through an API and I finally figured out how to access that information. What I need to get done now is take the results and create the Virtual Devices, or at the very least, update Virtual Devices I would create myself (Once I figure out how to do that).
The URL to the API is something like (userID and Key intentionally left out):
https://api.enphaseenergy.com/api/v2...&user_id=My_ID
which would return a JSON that looks something like this:
{"system_id":SysID,"modules":31,"size_w":7690,"current_po wer ":914,"energy_today":13260,"energy_lifetime":109483300," summ ary_date":"2019-09-04","source":"microinverters","status":"normal","operation al _at":1201362300,"last_report_at":1567624045,"last_interval_ e nd_at":1567623262}
I tried using the Big5 PI to ingest these values, but it seems to only create a single virtual device with a single string that I don't think I can use. I am comfortable with scripting and such, just not in VB, or with HS for that matter.
Ideally, the script would go out to the API and gather all available results and create (or update) Virtual Devices. I would like to gather all of the data in a single call to limit the number of hits on the API since I only get 10000 hits per month, leaving my queries to every 5 min during daytime hours.
Any assistance you could provide in accomplishing what I hope is a simple task would be very much appreciated.
Comment