Jost
October 17, 2023, 8:33pm
1
I've written a small device driver for the Deye Inverter (tested with SUN600, should also run with other Deye devices).
It shows the current produced solar power, the accumulated value for today, and in total (since installation of the inverter).
Maybe someone else find this useful, too:
// https://github.com/JostAusSoest/jsDeyeInverter/blob/main/code.groovy
metadata
{
definition(name:'jsDeyeInverter', namespace:'de.schwider', author:'Jost Schwider', description:'Just Simple Deye Inverter Driver')
{
capability 'Polling'
capability 'PowerMeter'
attribute 'installedAt','String'
attribute 'updatedAt', 'String'
attribute 'isPolling', 'Boolean'
attribute 'power', 'Number'
attribute 'yieldToday', 'Number'
attribute 'yieldTotal', 'Number'
attribute 'maxToday', 'Number'
attribute 'maxTotal', 'Number'
command 'resetMaxTotal'
}
This file has been truncated. show original
Have fun!
3 Likes
Jost
October 18, 2023, 7:22pm
2
Changes 2023/10/18:
New: Attribute maxToday
stores maximum power of the day.
New: Attribute maxTotal
stores maximum power since last reset.
New: Command resetMaxTotal
sets maxTotal
to current power
.
Changed: Power [W] is stored as Integer (instead of Float).