grzegorz914 / homebridge-enphase-envoy

Homebridge plugin for Photovoltaic Energy System manufactured by Enphase. Supported Envoy-IQ, Envoy-S and all peripheral devices.
MIT License
52 stars 9 forks source link

Ensemble Detection and Encharge Status Gone in 5.3.0 #40

Closed thk-socal closed 3 years ago

thk-socal commented 3 years ago

No longer detected as Ensemble and the Encharge batteries are no longer in being reported.

grzegorz914 commented 3 years ago

try 5.3.1-beta

thk-socal commented 3 years ago

No go with 5.3.1 beta 17

grzegorz914 commented 3 years ago

can You get the debug log?

grzegorz914 commented 3 years ago

try beta 19

thk-socal commented 3 years ago

installing and trying....one separate question for you. what is the value "max power" that comes back for my microinverters? is that what they are configured for or the maximum they have received?

grzegorz914 commented 3 years ago

beta 20 fixed the issue

grzegorz914 commented 3 years ago

max power is the peak power over the day from the microinverter

thk-socal commented 3 years ago

thank you for that...still not getting the encharges or the detection for ensemble....let me see about pulling the log data for you.

thk-socal commented 3 years ago

they are not even showing up in the inventory, is there a debug feature for your plugin I can turn on to get additional logs?

grzegorz914 commented 3 years ago

Yes, enable debug mode in HB and restart it

grzegorz914 commented 3 years ago

Any log?

thk-socal commented 3 years ago

^[[37m[23/08/2021, 16:54:35] ^[[39m^[[36m[homebridge-enphase-envoy]^[[39m ^[[90mDevice: 192.168.7.200 Envoy-S, requesting homeData.^[[39m ^[[37m[23/08/2021, 16:54:43] ^[[39m^[[36m[homebridge-enphase-envoy]^[[39m ^[[90mDevice 192.168.7.200 Envoy-S, debug homeData: {^[[39m ^[[37m[23/08/2021, 16:54:43] ^[[39m^[[36m[homebridge-enphase-envoy]^[[39m ^[[90mDevice: 192.168.7.200 Envoy-S, requesting powerModeData.^[[39m ^[[37m[23/08/2021, 16:54:43] ^[[39m^[[36m[homebridge-enphase-envoy]^[[39m ^[[90mDebug powerModeData: { powerForcedOff: false }^[[39m ^[[37m[23/08/2021, 16:54:43] ^[[39m^[[36m[homebridge-enphase-envoy]^[[39m ^[[90mDevice: 192.168.7.200 Envoy-S, requesting inventoryData.^[[39m ^[[37m[23/08/2021, 16:54:45] ^[[39m^[[36m[homebridge-enphase-envoy]^[[39m ^[[90mDevice 192.168.7.200 Envoy-S, debug metersData: [ [Object], [Object], [Object] ]^[[39m ^[[37m[23/08/2021, 16:54:45] ^[[39m^[[36m[homebridge-enphase-envoy]^[[39m ^[[90mDevice: 192.168.7.200 Envoy-S, requesting metersData.^[[39m ^[[37m[23/08/2021, 16:54:45] ^[[39m^[[36m[homebridge-enphase-envoy]^[[39m ^[[90mDevice 192.168.7.200 Envoy-S, debug metersData: [ [Object], [Object] ]^[[39m ^[[37m[23/08/2021, 16:54:45] ^[[39m^[[36m[homebridge-enphase-envoy]^[[39m ^[[90mDevice: 192.168.7.200 Envoy-S, requesting productionData.^[[39m ^[[37m[23/08/2021, 16:54:45] ^[[39m^[[36m[homebridge-enphase-envoy]^[[39m ^[[90mDebug productionData: {^[[39m ^[[37m[23/08/2021, 16:54:45] ^[[39m^[[36m[homebridge-enphase-envoy]^[[39m ^[[90mDevice: 192.168.7.200 Envoy-S, requesting productionCtData.^[[39m ^[[37m[23/08/2021, 16:54:47] ^[[39m^[[36m[homebridge-enphase-envoy]^[[39m ^[[90mDebug productionCtData: { production: [Array], consumption: [Array], storage: [Array] }^[[39m ^[[37m[23/08/2021, 16:54:47] ^[[39m^[[36m[homebridge-enphase-envoy]^[[39m ^[[90mDevice: 192.168.7.200 Envoy-S, requesting metersReadingData.^[[39m ^[[37m[23/08/2021, 16:54:47] ^[[39m^[[36m[homebridge-enphase-envoy]^[[39m ^[[90mDebug metersReadingData: [ [Object], [Object] ]^[[39m ^[[37m[23/08/2021, 16:54:47] ^[[39m^[[36m[homebridge-enphase-envoy]^[[39m ^[[90mDevice: 192.168.7.200 Envoy-S, requesting getDeviceInfo.^[[39m ^[[37m[23/08/2021, 16:54:47] ^[[39m^[[36m[homebridge-enphase-envoy]^[[39m -------- Envoy-S -------- ^[[37m[23/08/2021, 16:54:47] ^[[39m^[[36m[homebridge-enphase-envoy]^[[39m Manufacturer: Enphase ^[[37m[23/08/2021, 16:54:47] ^[[39m^[[36m[homebridge-enphase-envoy]^[[39m Model: X-IQ-AM1-240-3-ES ^[[37m[23/08/2021, 16:54:47] ^[[39m^[[36m[homebridge-enphase-envoy]^[[39m Firmware: D6.0.98 ^[[37m[23/08/2021, 16:54:47] ^[[39m^[[36m[homebridge-enphase-envoy]^[[39m SerialNr: ^[[37m[23/08/2021, 16:54:47] ^[[39m^[[36m[homebridge-enphase-envoy]^[[39m Time: 23/08/2021, 16:54:30 ^[[37m[23/08/2021, 16:54:47] ^[[39m^[[36m[homebridge-enphase-envoy]^[[39m ------------------------------ ^[[37m[23/08/2021, 16:54:47] ^[[39m^[[36m[homebridge-enphase-envoy]^[[39m Q-Relays: 0 ^[[37m[23/08/2021, 16:54:47] ^[[39m^[[36m[homebridge-enphase-envoy]^[[39m Inverters: 24 ^[[37m[23/08/2021, 16:54:47] ^[[39m^[[36m[homebridge-enphase-envoy]^[[39m Batteries: 0 ^[[37m[23/08/2021, 16:54:47] ^[[39m^[[36m[homebridge-enphase-envoy]^[[39m -------------------------------- ^[[37m[23/08/2021, 16:54:47] ^[[39m^[[36m[homebridge-enphase-envoy]^[[39m Meters: Yes ^[[37m[23/08/2021, 16:54:47] ^[[39m^[[36m[homebridge-enphase-envoy]^[[39m Production: Enabled ^[[37m[23/08/2021, 16:54:47] ^[[39m^[[36m[homebridge-enphase-envoy]^[[39m Consumption: Enabled ^[[37m[23/08/2021, 16:54:47] ^[[39m^[[36m[homebridge-enphase-envoy]^[[39m -------------------------------- ^[[37m[23/08/2021, 16:54:47] ^[[39m^[[36m[homebridge-enphase-envoy]^[[39m Ensemble: Not installed ^[[37m[23/08/2021, 16:54:47] ^[[39m^[[36m[homebridge-enphase-envoy]^[[39m -------------------------------- ^[[37m[23/08/2021, 16:54:47] ^[[39m^[[36m[homebridge-enphase-envoy]^[[39m ^[[90mDevice: 192.168.7.200 Envoy-S, update device state.^[[39m ^[[37m[23/08/2021, 16:54:47] ^[[39m^[[36m[homebridge-enphase-envoy]^[[39m ^[[90mDevice: 192.168.7.200 Envoy-S, savedProductionPowerMax: 7.09279 kW^[[39m ^[[37m[23/08/2021, 16:54:47] ^[[39m^[[36m[homebridge-enphase-envoy]^[[39m ^[[90mDevice: 192.168.7.200 Envoy-S, savedProductionPowerMax: 14.114968000000001 kW^[[39m ^[[37m[23/08/2021, 16:54:47] ^[[39m^[[36m[homebridge-enphase-envoy]^[[39m ^[[90mDevice: 192.168.7.200 Envoy-S, savedProductionPowerMax: 14.

thk-socal commented 3 years ago

that is the debug output for initial discovery where the Ensemble is not detected. not sure what logic changed in the inventory process that you created a bit ago, but it is not seeing an Ensemble device anymore since 5.3.0

grzegorz914 commented 3 years ago

please install 5.4.5-beta1 and get me the log, not enable debug mode

grzegorz914 commented 3 years ago

fixed

thk-socal commented 3 years ago

5.4.5 looks good at identifying, but had these errors come back now:

[24/08/2021, 16:40:59] [homebridge-enphase-envoy] This plugin generated a warning from the characteristic 'Status': characteristic value expected string and received undefined. See https://git.io/JtMGR for more info. at envoyDevice.updateDeviceState (/usr/lib/node_modules/homebridge-enphase-envoy/index.js:3244:18) at envoyDevice. (/usr/lib/node_modules/homebridge-enphase-envoy/index.js:2638:14) at envoyDevice.updateDeviceState (/usr/lib/node_modules/homebridge-enphase-envoy/index.js:3244:18) at envoyDevice.getDeviceInfo (/usr/lib/node_modules/homebridge-enphase-envoy/index.js:3052:12) at envoyDevice.updateMetersReadingData (/usr/lib/node_modules/homebridge-enphase-envoy/index.js:2995:97)

grzegorz914 commented 3 years ago

The log is not comple or some lines missing, please post the log again.

thk-socal commented 3 years ago

Sorry about that....silly grep

[24/08/2021, 16:40:59] [Envoy] Device: 192.168.7.200 Envoy IQ, update device state error: TypeError: Cannot read property 'updateCharacteristic' of undefined at envoyDevice.updateDeviceState (/usr/lib/node_modules/homebridge-enphase-envoy/index.js:3244:18) at envoyDevice.getDeviceInfo (/usr/lib/node_modules/homebridge-enphase-envoy/index.js:3052:12) at envoyDevice.updateMetersReadingData (/usr/lib/node_modules/homebridge-enphase-envoy/index.js:2995:97) at processTicksAndRejections (internal/process/task_queues.js:95:5)

grzegorz914 commented 3 years ago

fixed

thk-socal commented 3 years ago

Dropped 5.4.6 in and still with error:

Device: 192.168.7.200 Envoy IQ, update device state error: TypeError: Cannot read property 'updateCharacteristic' of undefined at envoyDevice.updateDeviceState (/usr/lib/node_modules/homebridge-enphase-envoy/index.js:3244:18) at envoyDevice.getDeviceInfo (/usr/lib/node_modules/homebridge-enphase-envoy/index.js:3052:12) at envoyDevice.updateMetersReadingData (/usr/lib/node_modules/homebridge-enphase-envoy/index.js:2995:97) at processTicksAndRejections (internal/process/task_queues.js:95:5)

grzegorz914 commented 3 years ago

Very strange, can You put the complete log with debug ON