This is my first attempt at creating and releasing a device type - a power & energy meter for a solar system running Enphase inverters. It connects to the Enphase Envoy on the local LAN and thus is not bound to any rate limits or contingent on setup of a developer account with Enphase. This was inspired by this post (with the linked code unfortunately no longer being available).
Unfortunately it is not possible to set dynamic colors on tiles - the main tile will turn green for production of 2kW or more (you could adjust that depending on system size)
The peak percentage is based on maximum theoretical output (number of inverters multiplied with inverter size)
Peak power is not reported by the envoy - this is the maximum value the device type encountered during the day - if it gets polled every five minutes this should match the actual peak
Efficiencies are calculated based on panel size (number of inverters multiplied with panel size) - this allows for a system-size independent metric so there colors here should be correct
Latest update on Github now displays the power and energy readings for the current and previous day on a graph below the main tile (power in blue, energy in read - previous day in light, current day in solid colors):
(Note: the lack of details on the main tile is due to the current ST application bug which no longer displays the SECONDARY_CONTROL for a multiTile).
Here is what the tile looks like on a day (at least what we call cloudy around here ) - I also updated the visual appearance some more (added vertical axes labels and color codes them to make it clearer which data belongs to which axis) and fixed a stupid bug causing the energy data to show up as a staircase before (integerValue() for a float value was not the best ideaâŠ):
Hi, looking at the screen grabs this looks to be an amazing addition to Smartthings. The only snag I have its that I have installed this on my hub, but it does not get any readings. Iâve looked at your code, and Iâm no pro but I see your calling http://(local IP of Envoy)/api/v1/production. Iâve browsed directly there and I get data back.
Being a novice at such things Iâm now out of ideas. Is it possible to give me some tips on debugging? I have no clue where to go next.
The device settings. Go to your devices list and look for your device - it is listed with whatever name you gave it:
<img src=â//cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/smartthings/original/3X/a/f/afb30569cea4b138bd3057cc1ecd719ef7e5661a.pngâ width=â690â height=â68â
The 6th column lists the device network ID (which should be automatically set to your Envoyâs MAC address). Do you have that there or not? If not, try to configure the device again (from within the ST app), making sure to hit âDoneâ - this should correctly set the device ID to its MAC. If that didnât work, you can click the device name on the list shown above, click the âEditâ button and manually enter the MAC - for some reason automatically setting it seems to sometimes fail.
Open the IDE Logging link and see what happens when you click the âRefreshâ button for the device in the ST app (try this at least three times - for some reason the hub seems to sometimes drop local LAN request. You should do the same when updating the device configuration as well) - if you post the results form the logging I might be able to determine what is going on.
Keep in mind that the device will not automatically update itâs data - I am using the âPollsterâ SmartApp to poll it once every five minutes.
Also, make sure that you have the latest version of the device handler from the Github link above - I did some changes to optimize things in order to minimize load on the cloud.
@Jon_Hope,
Iâm having the same issues as you. Everything appears to be configured correctly, but it doesnât pull any information. I havenât had time to look at the issue in depth yet, so Iâll go through Andreasâ suggestions tonight and see if I can get it working. Iâm sure itâll be something stupid.
One thing that I did find odd is that I couldnât initially put the settings in the App. I had to do it from the IDE. When I tried to put it in the App, it told me that I had to put in all of the settings. But they were all in there.
Iâll follow up if I get things working.
Well, this right here is my issue. When I put in that site with my IP address, I get a 404 page saying that it canât be found. Maybe my Envoy is too old.
Interesting - my Envoy is two years old. What happens if you go to http://(localIP of Envoy)? Here is what I see in the âSystem Statisticsâ table (partial information only):
Current Software Version R3.12.49 (590f48)
Software Build Date Thu Oct 29, 2015 02:56 PM PDT
Not sure what the exact model of my Envoy is (it is up in the attic and I donât want to wake up my son by going up thereâŠ)
You should try yourself first - according to this FAQ you should be able to do so yourself. I donât see the âTasksâ entry but maybe it is not there when your Envoy is up-to-date?
The model number/revision I see on the enlighten website are 800-00069-r05 (Envoy-R-NA)
Yeah, i saw that FAQ too, but I donât have that task page either. I actually have my solar company coming out on Friday to replace some inverters. I asked them if they could give me a new Envoy (Enphase has new devices that have more features). I doubt they will, but hopefully theyâll be able to update my current one if they wonât give me a new one.
You should look in the paperwork you got at installation - that should list the exact hardware you got.
As for inverter size, you can also go to your systemâs website on the enlighten website and click the âDevicesâ tab - this will list your inverter model numbers:
Hmmm, i donât have a devices tab. Maybe because the system is owned by Sunstreet? I did find the model for the panels under the system details section.
Ahh, I see. You have the crippled view only, no access to individual inverters
The panel model number should allow you to determine the panel size - based on that you can make a bet guess whether you have the 215 or 250 inverters (e.g., I have 250W inverters on my 300W panels)
Yeah, i plugged in my 265W panels and guessed at 250W inverteers and things seem to be flowing into the device ok. Only thing that isnât working is the yesterday data.
You can verify the inverter size based on the maximum power you get - on a sunny day with optimal exposure it should match (or slightly exceed) number of panels times inverter size. With 265W panels you actually might still use the 215W invertersâŠ
This should populate starting the second day - the Envoy doesnât give access to yesterdayâs data so the device uses the ST event history for that.