-
Notifications
You must be signed in to change notification settings - Fork 8
Description
Hi, Might be me being a muppet but the battery level is not shown and I get an error. From debug looks like its retrieved ok?
So:
Config-
{
"name": "SolarEdge Inverter",
"manufacturer": "SolarEdge",
"model": "Inverter",
"serial": "solaredge-inverter-1",
"site_id": "XXXX",
"api_key": "XXXXXXXX",
"update_interval": 15,
"current": true,
"accessory": "SolarEdge Inverter",
"last_day": true,
"last_month": true,
"last_year": true,
"life_time": true,
"battery": true,
"debug": true
}
(I got rid of the site id and api key for now unless you need it)
[7/23/2021, 11:12:25 AM] Homebridge v1.3.4 (Homebridge DE9A) is running on port 52000.
[7/23/2021, 11:12:25 AM] [SolarEdge Inverter] Data from API {
lastUpdateTime: '2021-07-23 10:56:32',
lifeTimeData: { energy: 8051848 },
lastYearData: { energy: 2958918 },
lastMonthData: { energy: 461211 },
lastDayData: { energy: 9571 },
currentPower: { power: 320.30142 },
measuredBy: 'INVERTER'
}
[7/23/2021, 11:12:25 AM] [SolarEdge Inverter] Calling Flow API
[7/23/2021, 11:12:26 AM] [SolarEdge Inverter] Data from Power Flow API {
updateRefreshRate: 3,
unit: 'kW',
connections: [
{ from: 'GRID', to: 'Load' },
{ from: 'PV', to: 'Load' },
{ from: 'PV', to: 'Storage' }
],
GRID: { status: 'Active', currentPower: 0.03 },
LOAD: { status: 'Active', currentPower: 0.35 },
PV: { status: 'Active', currentPower: 3.89 },
STORAGE: {
status: 'Charging',
currentPower: 3.57,
chargeLevel: 56,
critical: false
}
}
(node:3094) UnhandledPromiseRejectionWarning: TypeError: that.battery.getCharacteristic(...).updateValue(...).getCharacteristic is not a function
at update (/homebridge/node_modules/homebridge-solaredge-inverter/index.js:211:5)
at processTicksAndRejections (internal/process/task_queues.js:94:5)
(node:3094) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:3094) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Also is it possible to get all statistics returned as default lights? In particular the currentPower PV load (shown about as 3.89).
Plus the lastYear/lastMonth on my display is really the current year...?
Thanks,
c.