grzegorz914 / homebridge-enphase-envoy

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

homebridge-enphase-envoy v4.6.15-beta.18 #26

Closed hoefs closed 3 years ago

hoefs commented 3 years ago
[3/2/2021, 9:20:42 AM] [enphaseEnvoy] Device: 192.168.2.25 Envoy-S, requesting devices info eror: TypeError: Cannot read property 'state' of undefined
    at envoyDevice.getDeviceInfo (/homebridge/node_modules/homebridge-enphase-envoy/index.js:1469:49), state: Offline trying to reconnect.

I can see in the log it connects somewaht to the Envoy-S but not completely and plugin is not working in EVE app

Here the complete log:

[3/2/2021, 9:25:57 AM] [enphaseEnvoy] Device 192.168.2.25 Envoy-S, get devices data inventory: [ [Object], [Object], [Object] ] info: <?xml version='1.0' encoding='UTF-8'?>
<envoy_info>
  <time>1614673546</time>
  <device>
    <sn>121921106049</sn>
    <pn>800-00553-r02</pn>
    <software>R4.10.35</software>
    <euaid>4c8675</euaid>
    <seqnum>0</seqnum>
    <apiver>1</apiver>
    <imeter>false</imeter>
  </device>
  <package name='rootfs'>
    <pn>500-00001-r01</pn>
    <version>02.00.00</version>
    <build>945</build>
  </package>
  <package name='kernel'>
    <pn>500-00011-r01</pn>
    <version>04.00.00</version>
    <build>5bb754</build>
  </package>
  <package name='boot'>
    <pn>590-00018-r01</pn>
    <version>02.00.01</version>
    <build>426697</build>
  </package>
  <package name='app'>
    <pn>500-00002-r01</pn>
    <version>04.10.35</version>
    <build>6ed292</build>
  </package>
  <package name='devimg'>
    <pn>500-00005-r01</pn>
    <version>01.02.186</version>
    <build>d0d70f</build>
  </package>
  <package name='geo'>
    <pn>500-00008-r01</pn>
    <version>02.01.22</version>
    <build>06e201</build>
  </package>
  <package name='backbone'>
    <pn>500-00010-r01</pn>
    <version>04.10.25</version>
    <build>7b7de5</build>
  </package>
  <package name='meter'>
    <pn>500-00013-r01</pn>
    <version>03.02.07</version>
    <build>4c9d48</build>
  </package>
  <package name='agf'>
    <pn>500-00012-r01</pn>
    <version>02.02.00</version>
    <build>c00a8f</build>
  </package>
  <package name='security'>
    <pn>500-00016-r01</pn>
    <version>02.00.00</version>
    <build>54a6dc</build>
  </package>
  <build_info>
    <build_time_gmt>1542157882</build_time_gmt>
    <build_id>release-4.10.x-103-Nov-12-18-18:25:06</build_id>
  </build_info>
</envoy_info>
 meters: []
[3/2/2021, 9:25:57 AM] [enphaseEnvoy] Device: 192.168.2.25 Envoy-S, parse info.xml successful: {
  "envoy_info": {
    "time": [
      "1614673546"
    ],
    "device": [
      {
        "sn": [
          "121921106049"
        ],
        "pn": [
          "800-00553-r02"
        ],
        "software": [
          "R4.10.35"
        ],
        "euaid": [
          "4c8675"
        ],
        "seqnum": [
          "0"
        ],
        "apiver": [
          "1"
        ],
        "imeter": [
          "false"
        ]
      }
    ],
    "package": [
      {
        "$": {
          "name": "rootfs"
        },
        "pn": [
          "500-00001-r01"
        ],
        "version": [
          "02.00.00"
        ],
        "build": [
          "945"
        ]
      },
      {
        "$": {
          "name": "kernel"
        },
        "pn": [
          "500-00011-r01"
        ],
        "version": [
          "04.00.00"
        ],
        "build": [
          "5bb754"
        ]
      },
      {
        "$": {
          "name": "boot"
        },
        "pn": [
          "590-00018-r01"
        ],
        "version": [
          "02.00.01"
        ],
        "build": [
          "426697"
        ]
      },
      {
        "$": {
          "name": "app"
        },
        "pn": [
          "500-00002-r01"
        ],
        "version": [
          "04.10.35"
        ],
        "build": [
          "6ed292"
        ]
      },
      {
        "$": {
          "name": "devimg"
        },
        "pn": [
          "500-00005-r01"
        ],
        "version": [
          "01.02.186"
        ],
        "build": [
          "d0d70f"
        ]
      },
      {
        "$": {
          "name": "geo"
        },
        "pn": [
          "500-00008-r01"
        ],
        "version": [
          "02.01.22"
        ],
        "build": [
          "06e201"
        ]
      },
      {
        "$": {
          "name": "backbone"
        },
        "pn": [
          "500-00010-r01"
        ],
        "version": [
          "04.10.25"
        ],
        "build": [
          "7b7de5"
        ]
      },
      {
        "$": {
          "name": "meter"
        },
        "pn": [
          "500-00013-r01"
        ],
        "version": [
          "03.02.07"
        ],
        "build": [
          "4c9d48"
        ]
      },
      {
        "$": {
          "name": "agf"
        },
        "pn": [
          "500-00012-r01"
        ],
        "version": [
          "02.02.00"
        ],
        "build": [
          "c00a8f"
        ]
      },
      {
        "$": {
          "name": "security"
        },
        "pn": [
          "500-00016-r01"
        ],
        "version": [
          "02.00.00"
        ],
        "build": [
          "54a6dc"
        ]
      }
    ],
    "build_info": [
      {
        "build_time_gmt": [
          "1542157882"
        ],
        "build_id": [
          "release-4.10.x-103-Nov-12-18-18:25:06"
        ]
      }
    ]
  }
}
[3/2/2021, 9:25:57 AM] [enphaseEnvoy] Device: 192.168.2.25 Envoy-S, saved Device Info successful.
[3/2/2021, 9:25:57 AM] [enphaseEnvoy] Device: 192.168.2.25 Envoy-S, requesting devices info eror: TypeError: Cannot read property 'state' of undefined
    at envoyDevice.getDeviceInfo (/homebridge/node_modules/homebridge-enphase-envoy/index.js:1469:49), state: Offline trying to reconnect.

Rolled back to 4.6.14 and no errors and EVE is working CMD: npm install --save homebridge-enphase-envoy@4.6.14

[3/2/2021, 9:28:34 AM] [enphaseEnvoy] Device 192.168.2.25 Envoy-S, get devices data inventory: [ [Object], [Object], [Object] ] info: <?xml version='1.0' encoding='UTF-8'?>
<envoy_info>
  <time>1614673703</time>
  <device>
    <sn>121921106049</sn>
    <pn>800-00553-r02</pn>
    <software>R4.10.35</software>
    <euaid>4c8675</euaid>
    <seqnum>0</seqnum>
    <apiver>1</apiver>
    <imeter>false</imeter>
  </device>
  <package name='rootfs'>
    <pn>500-00001-r01</pn>
    <version>02.00.00</version>
    <build>945</build>
  </package>
  <package name='kernel'>
    <pn>500-00011-r01</pn>
    <version>04.00.00</version>
    <build>5bb754</build>
  </package>
  <package name='boot'>
    <pn>590-00018-r01</pn>
    <version>02.00.01</version>
    <build>426697</build>
  </package>
  <package name='app'>
    <pn>500-00002-r01</pn>
    <version>04.10.35</version>
    <build>6ed292</build>
  </package>
  <package name='devimg'>
    <pn>500-00005-r01</pn>
    <version>01.02.186</version>
    <build>d0d70f</build>
  </package>
  <package name='geo'>
    <pn>500-00008-r01</pn>
    <version>02.01.22</version>
    <build>06e201</build>
  </package>
  <package name='backbone'>
    <pn>500-00010-r01</pn>
    <version>04.10.25</version>
    <build>7b7de5</build>
  </package>
  <package name='meter'>
    <pn>500-00013-r01</pn>
    <version>03.02.07</version>
    <build>4c9d48</build>
  </package>
  <package name='agf'>
    <pn>500-00012-r01</pn>
    <version>02.02.00</version>
    <build>c00a8f</build>
  </package>
  <package name='security'>
    <pn>500-00016-r01</pn>
    <version>02.00.00</version>
    <build>54a6dc</build>
  </package>
  <build_info>
    <build_time_gmt>1542157882</build_time_gmt>
    <build_id>release-4.10.x-103-Nov-12-18-18:25:06</build_id>
  </build_info>
</envoy_info>
 meters: []
[3/2/2021, 9:28:34 AM] [enphaseEnvoy] Device: 192.168.2.25 Envoy-S, parse info.xml successful: {
  "envoy_info": {
    "time": [
      "1614673703"
    ],
    "device": [
      {
        "sn": [
          "121921106049"
        ],
        "pn": [
          "800-00553-r02"
        ],
        "software": [
          "R4.10.35"
        ],
        "euaid": [
          "4c8675"
        ],
        "seqnum": [
          "0"
        ],
        "apiver": [
          "1"
        ],
        "imeter": [
          "false"
        ]
      }
    ],
    "package": [
      {
        "$": {
          "name": "rootfs"
        },
        "pn": [
          "500-00001-r01"
        ],
        "version": [
          "02.00.00"
        ],
        "build": [
          "945"
        ]
      },
      {
        "$": {
          "name": "kernel"
        },
        "pn": [
          "500-00011-r01"
        ],
        "version": [
          "04.00.00"
        ],
        "build": [
          "5bb754"
        ]
      },
      {
        "$": {
          "name": "boot"
        },
        "pn": [
          "590-00018-r01"
        ],
        "version": [
          "02.00.01"
        ],
        "build": [
          "426697"
        ]
      },
      {
        "$": {
          "name": "app"
        },
        "pn": [
          "500-00002-r01"
        ],
        "version": [
          "04.10.35"
        ],
        "build": [
          "6ed292"
        ]
      },
      {
        "$": {
          "name": "devimg"
        },
        "pn": [
          "500-00005-r01"
        ],
        "version": [
          "01.02.186"
        ],
        "build": [
          "d0d70f"
        ]
      },
      {
        "$": {
          "name": "geo"
        },
        "pn": [
          "500-00008-r01"
        ],
        "version": [
          "02.01.22"
        ],
        "build": [
          "06e201"
        ]
      },
      {
        "$": {
          "name": "backbone"
        },
        "pn": [
          "500-00010-r01"
        ],
        "version": [
          "04.10.25"
        ],
        "build": [
          "7b7de5"
        ]
      },
      {
        "$": {
          "name": "meter"
        },
        "pn": [
          "500-00013-r01"
        ],
        "version": [
          "03.02.07"
        ],
        "build": [
          "4c9d48"
        ]
      },
      {
        "$": {
          "name": "agf"
        },
        "pn": [
          "500-00012-r01"
        ],
        "version": [
          "02.02.00"
        ],
        "build": [
          "c00a8f"
        ]
      },
      {
        "$": {
          "name": "security"
        },
        "pn": [
          "500-00016-r01"
        ],
        "version": [
          "02.00.00"
        ],
        "build": [
          "54a6dc"
        ]
      }
    ],
    "build_info": [
      {
        "build_time_gmt": [
          "1542157882"
        ],
        "build_id": [
          "release-4.10.x-103-Nov-12-18-18:25:06"
        ]
      }
    ]
  }
}
[3/2/2021, 9:28:34 AM] [enphaseEnvoy] Device: 192.168.2.25 Envoy-S, saved Device Info successful.
[3/2/2021, 9:28:34 AM] [enphaseEnvoy] -------- Envoy-S --------
[3/2/2021, 9:28:34 AM] [enphaseEnvoy] Manufacturer: Enphase
[3/2/2021, 9:28:34 AM] [enphaseEnvoy] Model: Envoy
[3/2/2021, 9:28:34 AM] [enphaseEnvoy] Meters: 0
[3/2/2021, 9:28:34 AM] [enphaseEnvoy] Q-Relays: 1
[3/2/2021, 9:28:34 AM] [enphaseEnvoy] Encharges: 0
[3/2/2021, 9:28:34 AM] [enphaseEnvoy] Inverters: 14
[3/2/2021, 9:28:34 AM] [enphaseEnvoy] Firmware: R4.10.35
[3/2/2021, 9:28:34 AM] [enphaseEnvoy] SerialNr: 121921106049
[3/2/2021, 9:28:34 AM] [enphaseEnvoy] Time: 3/2/2021, 9:28:23 AM
[3/2/2021, 9:28:34 AM] [enphaseEnvoy] ----------------------------------
[3/2/2021, 9:28:40 AM] [enphaseEnvoy] Debug home: {
  software_build_epoch: 1542074240,
  is_nonvoy: false,
  db_size: '39 MB',
  db_percent_full: '10',
  timezone: 'Europe/Brussels',
  current_date: '03/02/2021',
  current_time: '09:28',
  network: [Object],
  tariff: 'none',
  comm: [Object],
  alerts: [],
  update_status: 'satisfied'
}, inventory: [ [Object], [Object], [Object] ], meters: [], production: {
  wattHoursToday: 191,
  wattHoursSevenDays: 55876,
  wattHoursLifetime: 5035270,
  wattsNow: 187
} productionCT: { production: [Array], storage: [Array] }
[3/2/2021, 9:28:42 AM] [enphaseEnvoy] Debug pcuCommCheck: {
  '121932043894': 3,
  '121932016547': 3,
  '121932034199': 3,
  '121932033746': 4,
  '121932016549': 3,
  '121932039512': 3,
  '121932038960': 4,
  '121932043380': 4,
  '121932039459': 4,
  '121910052727': 3,
  '121932039006': 4,
  '121931158966': 3,
  '121932035604': 3,
  '121931157713': 4,
  '121932039565': 4
}
[3/2/2021, 9:28:42 AM] [enphaseEnvoy] Debug production inverters: [
  [Object], [Object],
  [Object], [Object],
  [Object], [Object],
  [Object], [Object],
  [Object], [Object],
  [Object], [Object],
  [Object], [Object]
]
[3/2/2021, 9:28:42 AM] [enphaseEnvoy] Device: 192.168.2.25 Envoy-S, savedProductionPowerMax: 3.445 kW
[3/2/2021, 9:28:42 AM] [enphaseEnvoy] Device: 192.168.2.25 Envoy-S, productionPowerMax: 3.445 kW
[3/2/2021, 9:28:42 AM] [enphaseEnvoy] prepareAccessory
[3/2/2021, 9:28:42 AM] [enphaseEnvoy] prepareInformationService
[3/2/2021, 9:28:42 AM] [enphaseEnvoy] prepareEnphaseServices
[3/2/2021, 9:28:43 AM] [enphaseEnvoy] Device: 192.168.2.25, publishExternalAccessories: Envoy-S.
grzegorz914 commented 3 years ago

Try beta 19

hoefs commented 3 years ago

Try beta 19

Thanks! Fixed

[3/2/2021, 11:56:50 AM] [enphaseEnvoy] Device: 192.168.2.25 Envoy-S, saved Device Info successful.
[3/2/2021, 11:56:50 AM] [enphaseEnvoy] -------- Envoy-S --------
[3/2/2021, 11:56:50 AM] [enphaseEnvoy] Manufacturer: Enphase
[3/2/2021, 11:56:50 AM] [enphaseEnvoy] Model: Envoy
[3/2/2021, 11:56:50 AM] [enphaseEnvoy] Api ver: 1
[3/2/2021, 11:56:50 AM] [enphaseEnvoy] Firmware: R4.10.35
[3/2/2021, 11:56:50 AM] [enphaseEnvoy] SerialNr: 121921106049
[3/2/2021, 11:56:50 AM] [enphaseEnvoy] Time: 3/2/2021, 11:56:39 AM
[3/2/2021, 11:56:50 AM] [enphaseEnvoy] ------------------------------
[3/2/2021, 11:56:50 AM] [enphaseEnvoy] Meters: No
[3/2/2021, 11:56:50 AM] [enphaseEnvoy] Q-Relays: 1
[3/2/2021, 11:56:50 AM] [enphaseEnvoy] Encharges: 0
[3/2/2021, 11:56:50 AM] [enphaseEnvoy] Inverters: 14
[3/2/2021, 11:56:50 AM] [enphaseEnvoy] ------------------------------
grzegorz914 commented 3 years ago

Beta 20 will identify your envoy correct

grzegorz914 commented 3 years ago

Just as info, if U have Mac device then the Controller app is now available also for Mac.

hoefs commented 3 years ago

Beta 20 will identify your envoy correct

Is this correct?

[3/2/2021, 12:06:56 PM] [enphaseEnvoy] -------- Envoy-S --------
[3/2/2021, 12:06:56 PM] [enphaseEnvoy] Manufacturer: Enphase
[3/2/2021, 12:06:56 PM] [enphaseEnvoy] Model: ENV-S-WB-230
[3/2/2021, 12:06:56 PM] [enphaseEnvoy] Api ver: 1
[3/2/2021, 12:06:56 PM] [enphaseEnvoy] Firmware: R4.10.35
[3/2/2021, 12:06:56 PM] [enphaseEnvoy] SerialNr: 121921106049
[3/2/2021, 12:06:56 PM] [enphaseEnvoy] Time: 3/2/2021, 12:06:45 PM
[3/2/2021, 12:06:56 PM] [enphaseEnvoy] ------------------------------
[3/2/2021, 12:06:56 PM] [enphaseEnvoy] Meters: No
[3/2/2021, 12:06:56 PM] [enphaseEnvoy] Q-Relays: 1
[3/2/2021, 12:06:56 PM] [enphaseEnvoy] Encharges: 0
[3/2/2021, 12:06:56 PM] [enphaseEnvoy] Inverters: 14
[3/2/2021, 12:06:56 PM] [enphaseEnvoy] ------------------------------
hoefs commented 3 years ago

Just as info, if U have Mac device then the Controller app is now available also for Mac.

I have a mac. Are you pointing to the bitbar solution with homebrew?

grzegorz914 commented 3 years ago

You do not need homebrew just look in the Mac App Store for Controller app. Since today is also available for mac

grzegorz914 commented 3 years ago

Beta 20 will identify your envoy correct

Is this correct?

[3/2/2021, 12:06:56 PM] [enphaseEnvoy] -------- Envoy-S --------
[3/2/2021, 12:06:56 PM] [enphaseEnvoy] Manufacturer: Enphase
[3/2/2021, 12:06:56 PM] [enphaseEnvoy] Model: ENV-S-WB-230
[3/2/2021, 12:06:56 PM] [enphaseEnvoy] Api ver: 1
[3/2/2021, 12:06:56 PM] [enphaseEnvoy] Firmware: R4.10.35
[3/2/2021, 12:06:56 PM] [enphaseEnvoy] SerialNr: 121921106049
[3/2/2021, 12:06:56 PM] [enphaseEnvoy] Time: 3/2/2021, 12:06:45 PM
[3/2/2021, 12:06:56 PM] [enphaseEnvoy] ------------------------------
[3/2/2021, 12:06:56 PM] [enphaseEnvoy] Meters: No
[3/2/2021, 12:06:56 PM] [enphaseEnvoy] Q-Relays: 1
[3/2/2021, 12:06:56 PM] [enphaseEnvoy] Encharges: 0
[3/2/2021, 12:06:56 PM] [enphaseEnvoy] Inverters: 14
[3/2/2021, 12:06:56 PM] [enphaseEnvoy] ------------------------------

Yes it is correct Envoy-S Standard EU

grzegorz914 commented 3 years ago

Just as info, if U have Mac device then the Controller app is now available also for Mac.

I have a mac. Are you pointing to the bitbar solution with homebrew?

Regarding homebrew just try the command from readme in Mac console.

hoefs commented 3 years ago

You do not need homebrew just look in the Mac App Store for Controller app. Since today is also available for mac

I can't find it, do you have a link?

cloudkucooland commented 3 years ago

https://apps.apple.com/us/app/controller-for-homekit/id1198176727