ASolarEdgeInverterpluginforHomebridge.ThiscreatesaasetofLightSensorsinhomekit,wheretheLUXreadingisactuallythepowergenerationinKiloWatts.Thereisalsoanoptiontodisplaybatterylevelifapplicable.
ThiscodeisheavilybasedontheworkofStog'shomebridge-fronius-inverteraccessory.
InstallationRunthesecommands:
%sudonpminstall-ghomebridge%sudonpminstall-ghomebridge-solaredge-inverterNB:Ifyouinstallhomebridgelikethis:
sudonpminstall-g--unsafe-permhomebridgeThenallsubsequentinstallationsmustbelikethis:
sudonpminstall-g--unsafe-permhomebridge-solaredge-inverterConfigurationExampleaccessoryconfig(needstobeaddedtothehomebridgeconfig.json):...
"accessories":[{"name":"SolarEdgeInverter","manufacturer":"SolarEdge","model":"SE10000H-US000BNU4","serial":"myserialno","site_id":"mysiteid","api_key":"longapikey","update_interval":15,"accessory":"SolarEdgeInverter","current":true,"currentWatts":true,"last_day":false,"last_month":false,"last_year":false,"life_time":true"battery":true"debug":false}]...
ConfigExplanation:FieldDescriptionaccessory(required)Mustalwaysbe"SolarEdgeInverter".name(required)Thenameyouwanttouseforforthepowerlevelwidget.site_id(required)TheSiteIDforyourSolarEdgeinstallation.api_key(required)TheAPIKeyfortheadministrationofyourSolarEdgesite.manufacturer(optional)ThisshowsupinthehomekitaccessoryCharacteristics.model(optional)ThisshowsupinthehomekitaccessoryCharacteristics.serial(optional)ThisshowsupinthehomekitaccessoryCharacteristics.update_interval(optional)ThefrequencytopolltheSolarEdgeAPIinminutes(defaultsto15).debug(optional)Enablesadditionallogging.current(required)Displaycurrentpower(kW).currentWatts(optional)DisplaycurrentpowerinWvs.kW.last_day(required)DisplayLastDaypower(kW).last_month(required)DisplayLastMonthpower(kW).last_year(required)DisplayLastYearpower(kW).life_time(required)DisplayLifeTimepower(kW).battery(required)DisplayBatteryLevel(%).
评论