Doggi / ioBroker.kostal-piko-mp-plus

ioBroker Adapter - Integrate your Kostal PIKO MP plus
MIT License
1 stars 2 forks source link

TypeError: Cannot read properties of undefined (reading 'value') #14

Closed ekoschmi closed 2 years ago

ekoschmi commented 2 years ago

Describe the bug
So, when i tried out the adapter I get an error, meaning that there is an undefined object and that it cant read its properties.

To Reproduce
Steps to reproduce the behavior:

  1. Setting Options
  2. Start Adapter

Expected behavior
In the debug output i encountered, that the last state it can read was "measurements.acpowerfast". The next state should be "measurements.dcvoltage1" and after a look at the original "all.xml" of my inverter, i noticed, that my inverter got only "measurements.dcvoltage" because it has only one single string.

Screenshots & Logfiles
2022-07-03 11:02:37.192 - debug: kostal-piko-mp-plus.0 (30999) found state measurements.acpowerfast - 607.4 2022-07-03 11:02:37.195 - debug: kostal-piko-mp-plus.0 (30999) try to convert 607.4 to number 2022-07-03 11:02:37.210 - error: kostal-piko-mp-plus.0 (30999) set connection state to false 2022-07-03 11:02:37.212 - error: kostal-piko-mp-plus.0 (30999) unexpected error: TypeError: Cannot read properties of undefined (reading 'value')

Versions:

Additional context
So for me it looked like, there is an compatibility issue and the adapter was made for another model of the inverter. I got a Kostal Piko MP Plus 1.5-0 with only on DC String.

I will work on that!