Open Quickstep3 opened 1 year ago
The caching of the API calls results in every other call using the cached values due to being just within the 15min refresh window.
Will take a look and submit PR to resolve.
Log file extract: [11/10/2022, 09:03:41] [SolarEdge Inverter] Calling API [11/10/2022, 09:03:42] [SolarEdge Inverter] Data from API { lastUpdateTime: '2022-10-11 08:49:44', lifeTimeData: { energy: 105609, revenue: 16.028551 }, lastYearData: { energy: 103752 }, lastMonthData: { energy: 103752 }, lastDayData: { energy: 3523 }, currentPower: { power: 646.4022 }, measuredBy: 'INVERTER' } [11/10/2022, 09:03:42] [SolarEdge Inverter] Calling Flow API [11/10/2022, 09:03:42] [SolarEdge Inverter] Data from Power Flow API { updateRefreshRate: 3, unit: 'kW', connections: [ { from: 'PV', to: 'Load' }, { from: 'PV', to: 'Storage' } ], GRID: { status: 'Active', currentPower: 0 }, LOAD: { status: 'Active', currentPower: 0.33 }, PV: { status: 'Active', currentPower: 3.11 }, STORAGE: { status: 'Charging', currentPower: 2.78, chargeLevel: 55, critical: false } } [11/10/2022, 09:18:41] [SolarEdge Inverter] Calling API [11/10/2022, 09:18:41] [SolarEdge Inverter] Data from cache { lastUpdateTime: '2022-10-11 08:49:44', lifeTimeData: { energy: 105609, revenue: 16.028551 }, lastYearData: { energy: 103752 }, lastMonthData: { energy: 103752 }, lastDayData: { energy: 3523 }, currentPower: { power: 646.4022 }, measuredBy: 'INVERTER' } [11/10/2022, 09:18:41] [SolarEdge Inverter] Calling Flow API [11/10/2022, 09:18:41] [SolarEdge Inverter] Data from Power Flow cache { updateRefreshRate: 3, unit: 'kW', connections: [ { from: 'PV', to: 'Load' }, { from: 'PV', to: 'Storage' } ], GRID: { status: 'Active', currentPower: 0 }, LOAD: { status: 'Active', currentPower: 0.33 }, PV: { status: 'Active', currentPower: 3.11 }, STORAGE: { status: 'Charging', currentPower: 2.78, chargeLevel: 55, critical: false } } [11/10/2022, 09:33:41] [SolarEdge Inverter] Calling API [11/10/2022, 09:33:42] [SolarEdge Inverter] Data from API { lastUpdateTime: '2022-10-11 09:22:16', lifeTimeData: { energy: 105836, revenue: 16.062601 }, lastYearData: { energy: 103979 }, lastMonthData: { energy: 103979 }, lastDayData: { energy: 3750 }, currentPower: { power: 321.81708 }, measuredBy: 'INVERTER' } [11/10/2022, 09:33:42] [SolarEdge Inverter] Calling Flow API [11/10/2022, 09:33:42] [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.04 }, LOAD: { status: 'Active', currentPower: 0.36 }, PV: { status: 'Active', currentPower: 3.81 }, STORAGE: { status: 'Charging', currentPower: 3.49, chargeLevel: 71, critical: false } } [11/10/2022, 09:48:41] [SolarEdge Inverter] Calling API [11/10/2022, 09:48:41] [SolarEdge Inverter] Data from cache { lastUpdateTime: '2022-10-11 09:22:16', lifeTimeData: { energy: 105836, revenue: 16.062601 }, lastYearData: { energy: 103979 }, lastMonthData: { energy: 103979 }, lastDayData: { energy: 3750 }, currentPower: { power: 321.81708 }, measuredBy: 'INVERTER' } [11/10/2022, 09:48:41] [SolarEdge Inverter] Calling Flow API [11/10/2022, 09:48:41] [SolarEdge Inverter] Data from Power Flow cache { updateRefreshRate: 3, unit: 'kW', connections: [ { from: 'GRID', to: 'Load' }, { from: 'PV', to: 'Load' }, { from: 'PV', to: 'Storage' } ], GRID: { status: 'Active', currentPower: 0.04 }, LOAD: { status: 'Active', currentPower: 0.36 }, PV: { status: 'Active', currentPower: 3.81 }, STORAGE: { status: 'Charging', currentPower: 3.49, chargeLevel: 71, critical: false } } [11/10/2022, 10:03:41] [SolarEdge Inverter] Calling API [11/10/2022, 10:03:42] [SolarEdge Inverter] Data from API { lastUpdateTime: '2022-10-11 09:57:41', lifeTimeData: { energy: 106029, revenue: 16.09155 }, lastYearData: { energy: 104172 }, lastMonthData: { energy: 104172 }, lastDayData: { energy: 3943 }, currentPower: { power: 338.01157 }, measuredBy: 'INVERTER' } [11/10/2022, 10:03:42] [SolarEdge Inverter] Calling Flow API [11/10/2022, 10:03:42] [SolarEdge Inverter] Data from Power Flow API { updateRefreshRate: 3, unit: 'kW', connections: [ { from: 'PV', to: 'Load' }, { from: 'PV', to: 'Storage' } ], GRID: { status: 'Active', currentPower: 0 }, LOAD: { status: 'Active', currentPower: 0.34 }, PV: { status: 'Active', currentPower: 4.4 }, STORAGE: { status: 'Charging', currentPower: 4.06, chargeLevel: 90, critical: false } } [11/10/2022, 10:18:41] [SolarEdge Inverter] Calling API [11/10/2022, 10:18:41] [SolarEdge Inverter] Data from cache { lastUpdateTime: '2022-10-11 09:57:41', lifeTimeData: { energy: 106029, revenue: 16.09155 }, lastYearData: { energy: 104172 }, lastMonthData: { energy: 104172 }, lastDayData: { energy: 3943 }, currentPower: { power: 338.01157 }, measuredBy: 'INVERTER' } [11/10/2022, 10:18:41] [SolarEdge Inverter] Calling Flow API [11/10/2022, 10:18:41] [SolarEdge Inverter] Data from Power Flow cache { updateRefreshRate: 3, unit: 'kW', connections: [ { from: 'PV', to: 'Load' }, { from: 'PV', to: 'Storage' } ], GRID: { status: 'Active', currentPower: 0 }, LOAD: { status: 'Active', currentPower: 0.34 }, PV: { status: 'Active', currentPower: 4.4 }, STORAGE: { status: 'Charging', currentPower: 4.06, chargeLevel: 90, critical: false } }
The caching of the API calls results in every other call using the cached values due to being just within the 15min refresh window.
Will take a look and submit PR to resolve.
Log file extract: [11/10/2022, 09:03:41] [SolarEdge Inverter] Calling API [11/10/2022, 09:03:42] [SolarEdge Inverter] Data from API { lastUpdateTime: '2022-10-11 08:49:44', lifeTimeData: { energy: 105609, revenue: 16.028551 }, lastYearData: { energy: 103752 }, lastMonthData: { energy: 103752 }, lastDayData: { energy: 3523 }, currentPower: { power: 646.4022 }, measuredBy: 'INVERTER' } [11/10/2022, 09:03:42] [SolarEdge Inverter] Calling Flow API [11/10/2022, 09:03:42] [SolarEdge Inverter] Data from Power Flow API { updateRefreshRate: 3, unit: 'kW', connections: [ { from: 'PV', to: 'Load' }, { from: 'PV', to: 'Storage' } ], GRID: { status: 'Active', currentPower: 0 }, LOAD: { status: 'Active', currentPower: 0.33 }, PV: { status: 'Active', currentPower: 3.11 }, STORAGE: { status: 'Charging', currentPower: 2.78, chargeLevel: 55, critical: false } } [11/10/2022, 09:18:41] [SolarEdge Inverter] Calling API [11/10/2022, 09:18:41] [SolarEdge Inverter] Data from cache { lastUpdateTime: '2022-10-11 08:49:44', lifeTimeData: { energy: 105609, revenue: 16.028551 }, lastYearData: { energy: 103752 }, lastMonthData: { energy: 103752 }, lastDayData: { energy: 3523 }, currentPower: { power: 646.4022 }, measuredBy: 'INVERTER' } [11/10/2022, 09:18:41] [SolarEdge Inverter] Calling Flow API [11/10/2022, 09:18:41] [SolarEdge Inverter] Data from Power Flow cache { updateRefreshRate: 3, unit: 'kW', connections: [ { from: 'PV', to: 'Load' }, { from: 'PV', to: 'Storage' } ], GRID: { status: 'Active', currentPower: 0 }, LOAD: { status: 'Active', currentPower: 0.33 }, PV: { status: 'Active', currentPower: 3.11 }, STORAGE: { status: 'Charging', currentPower: 2.78, chargeLevel: 55, critical: false } } [11/10/2022, 09:33:41] [SolarEdge Inverter] Calling API [11/10/2022, 09:33:42] [SolarEdge Inverter] Data from API { lastUpdateTime: '2022-10-11 09:22:16', lifeTimeData: { energy: 105836, revenue: 16.062601 }, lastYearData: { energy: 103979 }, lastMonthData: { energy: 103979 }, lastDayData: { energy: 3750 }, currentPower: { power: 321.81708 }, measuredBy: 'INVERTER' } [11/10/2022, 09:33:42] [SolarEdge Inverter] Calling Flow API [11/10/2022, 09:33:42] [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.04 }, LOAD: { status: 'Active', currentPower: 0.36 }, PV: { status: 'Active', currentPower: 3.81 }, STORAGE: { status: 'Charging', currentPower: 3.49, chargeLevel: 71, critical: false } } [11/10/2022, 09:48:41] [SolarEdge Inverter] Calling API [11/10/2022, 09:48:41] [SolarEdge Inverter] Data from cache { lastUpdateTime: '2022-10-11 09:22:16', lifeTimeData: { energy: 105836, revenue: 16.062601 }, lastYearData: { energy: 103979 }, lastMonthData: { energy: 103979 }, lastDayData: { energy: 3750 }, currentPower: { power: 321.81708 }, measuredBy: 'INVERTER' } [11/10/2022, 09:48:41] [SolarEdge Inverter] Calling Flow API [11/10/2022, 09:48:41] [SolarEdge Inverter] Data from Power Flow cache { updateRefreshRate: 3, unit: 'kW', connections: [ { from: 'GRID', to: 'Load' }, { from: 'PV', to: 'Load' }, { from: 'PV', to: 'Storage' } ], GRID: { status: 'Active', currentPower: 0.04 }, LOAD: { status: 'Active', currentPower: 0.36 }, PV: { status: 'Active', currentPower: 3.81 }, STORAGE: { status: 'Charging', currentPower: 3.49, chargeLevel: 71, critical: false } } [11/10/2022, 10:03:41] [SolarEdge Inverter] Calling API [11/10/2022, 10:03:42] [SolarEdge Inverter] Data from API { lastUpdateTime: '2022-10-11 09:57:41', lifeTimeData: { energy: 106029, revenue: 16.09155 }, lastYearData: { energy: 104172 }, lastMonthData: { energy: 104172 }, lastDayData: { energy: 3943 }, currentPower: { power: 338.01157 }, measuredBy: 'INVERTER' } [11/10/2022, 10:03:42] [SolarEdge Inverter] Calling Flow API [11/10/2022, 10:03:42] [SolarEdge Inverter] Data from Power Flow API { updateRefreshRate: 3, unit: 'kW', connections: [ { from: 'PV', to: 'Load' }, { from: 'PV', to: 'Storage' } ], GRID: { status: 'Active', currentPower: 0 }, LOAD: { status: 'Active', currentPower: 0.34 }, PV: { status: 'Active', currentPower: 4.4 }, STORAGE: { status: 'Charging', currentPower: 4.06, chargeLevel: 90, critical: false } } [11/10/2022, 10:18:41] [SolarEdge Inverter] Calling API [11/10/2022, 10:18:41] [SolarEdge Inverter] Data from cache { lastUpdateTime: '2022-10-11 09:57:41', lifeTimeData: { energy: 106029, revenue: 16.09155 }, lastYearData: { energy: 104172 }, lastMonthData: { energy: 104172 }, lastDayData: { energy: 3943 }, currentPower: { power: 338.01157 }, measuredBy: 'INVERTER' } [11/10/2022, 10:18:41] [SolarEdge Inverter] Calling Flow API [11/10/2022, 10:18:41] [SolarEdge Inverter] Data from Power Flow cache { updateRefreshRate: 3, unit: 'kW', connections: [ { from: 'PV', to: 'Load' }, { from: 'PV', to: 'Storage' } ], GRID: { status: 'Active', currentPower: 0 }, LOAD: { status: 'Active', currentPower: 0.34 }, PV: { status: 'Active', currentPower: 4.4 }, STORAGE: { status: 'Charging', currentPower: 4.06, chargeLevel: 90, critical: false } }