I just got into SmartThings and adding solar power generation to my dashboard would be great. My system is monitored by an eGauge system and they do have an API documented at https://www.egauge.net/docs/egauge-xml-api.pdf. I have retrieved data from the eGauge using URI, but I have no idea what to do with it. If any of the developers here would like to take a shot at this or get me started with some sample code, I would really appreciate it. All I really care about is for the live Solar generation value and Grid usage in kW. I ran http://egauge15753.egaug.es/cgi-bin/egauge?noteam and got data back. If you want to see eGauges built-in monitoring just remove the /cgi… part from the hyperlink. I just need help figuring out how to use the data in SmartThings. The data I need comes back as:
-<meter title="Grid"> <energy>1805.1</energy> <energyWs>6498493728</energyWs> <power>-3278.7</power> </meter> -<meter title="Solar"> <energy>2741.7</energy> <energyWs>9870259918</energyWs> <power>3943.6</power> </meter>
Under Grid, a negative value for power indicates that I am putting energy back on the Grid. That could be used to change the color of the tile, i.e. green if the value is negative, red if the value is positive. Under Solar, power divided by 1,000 will give me a live reading in kW. The tile could be green and showing the solar power if solar energy is being put back on the grid, and the tile could be red and showing the Grid power value if that value is positive; meaning I am using energy from the grid.