"Cannot create vDev based on: 4-0-113: TypeError: Cannot read property 'forEach' of null"

Discussions about Z-Way software and Z-Wave technology in general
Post Reply
piet66
Posts: 36
Joined: 04 Feb 2017 17:00

"Cannot create vDev based on: 4-0-113: TypeError: Cannot read property 'forEach' of null"

Post by piet66 » 04 Jul 2018 22:49

Since some days I always get a lot of messages when opening and closing a window (device=Sensative Strip):

Code: Select all

20:58 | "Cannot create vDev based on: 4-0-113: TypeError: Cannot read property 'forEach' of null"
20:58 | "Cannot create vDev based on: 4-0-113: TypeError: Cannot read property 'forEach' of null"
20:58 | "Cannot create vDev based on: 4-0-113: TypeError: Cannot read property 'forEach' of null"
20:58 | "Cannot create vDev based on: 4-0-113: TypeError: Cannot read property 'forEach' of null"
20:58 | "Cannot create vDev based on: 4-0-113: TypeError: Cannot read property 'forEach' of null"
20:58 | "Cannot create vDev based on: 4-0-113: TypeError: Cannot read property 'forEach' of null"
20:58 | "Cannot create vDev based on: 4-0-113: TypeError: Cannot read property 'forEach' of null"
20:58 | "Cannot create vDev based on: 4-0-113: TypeError: Cannot read property 'forEach' of null"
20:58 | "Cannot create vDev based on: 4-0-113: TypeError: Cannot read property 'forEach' of null"
20:58 | "Cannot create vDev based on: 4-0-113: TypeError: Cannot read property 'forEach' of null"
20:58 | "Cannot create vDev based on: 4-0-113: TypeError: Cannot read property 'forEach' of null"
20:58 | "Cannot create vDev based on: 4-0-113: TypeError: Cannot read property 'forEach' of null"
20:58 | "Cannot create vDev based on: 4-0-113: TypeError: Cannot read property 'forEach' of null"
20:58 | "Cannot create vDev based on: 4-0-113: TypeError: Cannot read property 'forEach' of null"
20:58 | "Cannot create vDev based on: 4-0-113: TypeError: Cannot read property 'forEach' of null"
20:58 | "Cannot create vDev based on: 4-0-113: TypeError: Cannot read property 'forEach' of null"
20:58 | "Cannot create vDev based on: 4-0-113: TypeError: Cannot read property 'forEach' of null"
20:58 | "Cannot create vDev based on: 4-0-113: TypeError: Cannot read property 'forEach' of null"
20:58 | "Cannot create vDev based on: 4-0-113: TypeError: Cannot read property 'forEach' of null"
20:58 | "Cannot create vDev based on: 4-0-113: TypeError: Cannot read property 'forEach' of null"
20:58 | "Cannot create vDev based on: 4-0-113: TypeError: Cannot read property 'forEach' of null"
20:58 | "Cannot create vDev based on: 4-0-113: TypeError: Cannot read property 'forEach' of null"
20:58 | "Cannot create vDev based on: 4-0-113: TypeError: Cannot read property 'forEach' of null"
20:58 | "Cannot create vDev based on: 4-0-113: TypeError: Cannot read property 'forEach' of null"
20:58 | "Cannot create vDev based on: 4-0-113: TypeError: Cannot read property 'forEach' of null"
20:58 | "Cannot create vDev based on: 4-0-113: TypeError: Cannot read property 'forEach' of null"
20:58 | "Cannot create vDev based on: 4-0-113: TypeError: Cannot read property 'forEach' of null"
20:58 | "Cannot create vDev based on: 4-0-113: TypeError: Cannot read property 'forEach' of null"
But the device is working, in Web UI its state is marked as open/closed.
Messages from log:

Code: Select all

[2018-07-04 20:58:52.920] [I] [core] Notification: error (core): Cannot create vDev based on: 4-0-113: TypeError: Cannot read property 'forEach' of null
[2018-07-04 20:58:52.924] [I] [core] TypeError: Cannot read property 'forEach' of null
    at maskArrayToTypes (automation/modules/ZWave/index.js:5405:21)
    at automation/modules/ZWave/index.js:5420:83
    at Array.forEach (native)
    at ZWave.parseAddCommandClass (automation/modules/ZWave/index.js:5393:25)
    at ZDataHolder.<anonymous> (automation/modules/ZWave/index.js:5634:12)
[2018-07-04 20:58:53.075] [I] [core] Notification: error (core): Cannot create vDev based on: 4-0-113: TypeError: Cannot read property 'forEach' of null
[2018-07-04 20:58:53.077] [I] [core] TypeError: Cannot read property 'forEach' of null
    at maskArrayToTypes (automation/modules/ZWave/index.js:5405:21)
    at automation/modules/ZWave/index.js:5420:83
    at Array.forEach (native)
    at ZWave.parseAddCommandClass (automation/modules/ZWave/index.js:5393:25)
    at ZDataHolder.<anonymous> (automation/modules/ZWave/index.js:5634:12)
[2018-07-04 20:58:53.079] [I] [core] Notification: error (core): Cannot create vDev based on: 4-0-113: TypeError: Cannot read property 'forEach' of null
[2018-07-04 20:58:53.081] [I] [core] TypeError: Cannot read property 'forEach' of null
    at maskArrayToTypes (automation/modules/ZWave/index.js:5405:21)
    at automation/modules/ZWave/index.js:5420:83
    at Array.forEach (native)
    at ZWave.parseAddCommandClass (automation/modules/ZWave/index.js:5393:25)
    at ZDataHolder.<anonymous> (automation/modules/ZWave/index.js:5634:12)
[2018-07-04 20:58:53.083] [I] [core] Notification: error (core): Cannot create vDev based on: 4-0-113: TypeError: Cannot read property 'forEach' of null
[2018-07-04 20:58:53.085] [I] [core] TypeError: Cannot read property 'forEach' of null
    at maskArrayToTypes (automation/modules/ZWave/index.js:5405:21)
    at automation/modules/ZWave/index.js:5420:83
    at Array.forEach (native)
    at ZWave.parseAddCommandClass (automation/modules/ZWave/index.js:5393:25)
    at ZDataHolder.<anonymous> (automation/modules/ZWave/index.js:5634:12)
[2018-07-04 20:58:53.093] [I] [core] Notification: device-info (device-OnOff): {"dev":"ON-WZ Fenster Auf-Zu","l":"off","location":4}
[2018-07-04 20:58:53.300] [I] [core] Notification: error (core): Cannot create vDev based on: 4-0-113: TypeError: Cannot read property 'forEach' of null
[2018-07-04 20:58:53.301] [I] [core] TypeError: Cannot read property 'forEach' of null
    at maskArrayToTypes (automation/modules/ZWave/index.js:5405:21)
    at automation/modules/ZWave/index.js:5420:83
    at Array.forEach (native)
    at ZWave.parseAddCommandClass (automation/modules/ZWave/index.js:5393:25)
    at ZDataHolder.<anonymous> (automation/modules/ZWave/index.js:5634:12)
[2018-07-04 20:58:54.281] [I] [core] Notification: error (core): Cannot create vDev based on: 4-0-113: TypeError: Cannot read property 'forEach' of null
... and so on ...
It's caused by telegrams from device of frame type = 5.
Excerpt from my telegram log:

Code: Select all

0E0D0C0B0445011C012000FA31270000007105000000FF06170000F0
0E0D0C0B: Home ID
        04: Source 04=ON-WZ Sen(B)
          4501: Frame Control
          4=0100
            0: routed=no
            1: ACK required=yes
            0: low power=no
            0: speed modified=no
           5: Frame Type=?NDef
            0: Beam Control (Battery support option)=no beam
             1: Sequence No=1
              1C: Total Length in Bytes=28
                01: Destination 01=Z-Way
                  2000FA31270000007105000000FF06170000: Param(s)
                                                      F0: Checksum
[2018-07-04 20:58:52.068] #1  FT5   04=ON-WZ Sen(B) >> 01=Z-Way - 0x2000FA31270000007105000000FF06170000
Complete used route = 04=ON-WZ Sen(B) -> 01=Z-Way

0E0D0C0B0445011C012000FA22082600007105000000FF06170000EA
0E0D0C0B: Home ID
        04: Source 04=ON-WZ Sen(B)
          4501: Frame Control
          4=0100
            0: routed=no
            1: ACK required=yes
            0: low power=no
            0: speed modified=no
           5: Frame Type=?NDef
            0: Beam Control (Battery support option)=no beam
             1: Sequence No=1
              1C: Total Length in Bytes=28
                01: Destination 01=Z-Way
                  2000FA22082600007105000000FF06170000: Param(s)
                                                      EA: Checksum
[2018-07-04 20:58:53.977] #1  FT5   04=ON-WZ Sen(B) >> 01=Z-Way - 0x2000FA22082600007105000000FF06170000
Complete used route = 04=ON-WZ Sen(B) -> 01=Z-Way

0E0D0C0B0445011C012000FA22272200007105000000FF06170000C1
0E0D0C0B: Home ID
        04: Source 04=ON-WZ Sen(B)
          4501: Frame Control
          4=0100
            0: routed=no
            1: ACK required=yes
            0: low power=no
            0: speed modified=no
           5: Frame Type=?NDef
            0: Beam Control (Battery support option)=no beam
             1: Sequence No=1
              1C: Total Length in Bytes=28
                01: Destination 01=Z-Way
                  2000FA22272200007105000000FF06170000: Param(s)
                                                      C1: Checksum
[2018-07-04 20:58:53.051] #1  FT5   04=ON-WZ Sen(B) >> 01=Z-Way - 0x2000FA22272200007105000000FF06170000
Complete used route = 04=ON-WZ Sen(B) -> 01=Z-Way

0E0D0C0B01050119042207FA22272200000401222722000039
0E0D0C0B: Home ID
        01: Source 01=Z-Way
          0501: Frame Control
          0=0000
            0: routed=no
            0: ACK required=no
            0: low power=no
            0: speed modified=no
           5: Frame Type=?NDef
            0: Beam Control (Battery support option)=no beam
             1: Sequence No=1
              19: Total Length in Bytes=25
                04: Destination 04=ON-WZ Sen(B)
                  2207FA222722000004012227220000: Param(s)
                                                39: Checksum
[2018-07-04 20:58:53.232] #1  FT5   01=Z-Way >> 04=ON-WZ Sen(B) - 0x2207FA222722000004012227220000
Complete used route = 01=Z-Way -> 04=ON-WZ Sen(B)

0E0D0C0B0105011904220700312722000004012227220000D0
0E0D0C0B: Home ID
        01: Source 01=Z-Way
          0501: Frame Control
          0=0000
            0: routed=no
            0: ACK required=no
            0: low power=no
            0: speed modified=no
           5: Frame Type=?NDef
            0: Beam Control (Battery support option)=no beam
             1: Sequence No=1
              19: Total Length in Bytes=25
                04: Destination 04=ON-WZ Sen(B)
                  220700312722000004012227220000: Param(s)
                                                D0: Checksum
[2018-07-04 20:58:53.035] #1  FT5   01=Z-Way >> 04=ON-WZ Sen(B) - 0x220700312722000004012227220000
Complete used route = 01=Z-Way -> 04=ON-WZ Sen(B)

0E0D0C0B0445011C012000FA22271900007105000000FF06170000FA
0E0D0C0B: Home ID
        04: Source 04=ON-WZ Sen(B)
          4501: Frame Control
          4=0100
            0: routed=no
            1: ACK required=yes
            0: low power=no
            0: speed modified=no
           5: Frame Type=?NDef
            0: Beam Control (Battery support option)=no beam
             1: Sequence No=1
              1C: Total Length in Bytes=28
                01: Destination 01=Z-Way
                  2000FA22271900007105000000FF06170000: Param(s)
                                                      FA: Checksum
[2018-07-04 20:58:53.941] #1  FT5   04=ON-WZ Sen(B) >> 01=Z-Way - 0x2000FA22271900007105000000FF06170000
Complete used route = 04=ON-WZ Sen(B) -> 01=Z-Way

0E0D0C0B0105011904220700312719000004012227190000D0
0E0D0C0B: Home ID
        01: Source 01=Z-Way
          0501: Frame Control
          0=0000
            0: routed=no
            0: ACK required=no
            0: low power=no
            0: speed modified=no
           5: Frame Type=?NDef
            0: Beam Control (Battery support option)=no beam
             1: Sequence No=1
              19: Total Length in Bytes=25
                04: Destination 04=ON-WZ Sen(B)
                  220700312719000004012227190000: Param(s)
                                                D0: Checksum
[2018-07-04 20:58:53.520] #1  FT5   01=Z-Way >> 04=ON-WZ Sen(B) - 0x220700312719000004012227190000
Complete used route = 01=Z-Way -> 04=ON-WZ Sen(B)

0E0D0C0B0445011C012000FA13270223007105000000FF06170000F3
0E0D0C0B: Home ID
        04: Source 04=ON-WZ Sen(B)
          4501: Frame Control
          4=0100
            0: routed=no
            1: ACK required=yes
            0: low power=no
            0: speed modified=no
           5: Frame Type=?NDef
            0: Beam Control (Battery support option)=no beam
             1: Sequence No=1
              1C: Total Length in Bytes=28
                01: Destination 01=Z-Way
                  2000FA13270223007105000000FF06170000: Param(s)
                                                      F3: Checksum
[2018-07-04 20:58:53.427] #1  FT5   04=ON-WZ Sen(B) >> 01=Z-Way - 0x2000FA13270223007105000000FF06170000
Complete used route = 04=ON-WZ Sen(B) -> 01=Z-Way

0E0D0C0B0105011904220700222702230004011327022300F2
0E0D0C0B: Home ID
        01: Source 01=Z-Way
          0501: Frame Control
          0=0000
            0: routed=no
            0: ACK required=no
            0: low power=no
            0: speed modified=no
           5: Frame Type=?NDef
            0: Beam Control (Battery support option)=no beam
             1: Sequence No=1
              19: Total Length in Bytes=25
                04: Destination 04=ON-WZ Sen(B)
                  220700222702230004011327022300: Param(s)
                                                F2: Checksum
[2018-07-04 20:58:53.209] #1  FT5   01=Z-Way >> 04=ON-WZ Sen(B) - 0x220700222702230004011327022300
Complete used route = 01=Z-Way -> 04=ON-WZ Sen(B)

0E0D0C0B010501190422070040270223000401132702230090
0E0D0C0B: Home ID
        01: Source 01=Z-Way
          0501: Frame Control
          0=0000
            0: routed=no
            0: ACK required=no
            0: low power=no
            0: speed modified=no
           5: Frame Type=?NDef
            0: Beam Control (Battery support option)=no beam
             1: Sequence No=1
              19: Total Length in Bytes=25
                04: Destination 04=ON-WZ Sen(B)
                  220700402702230004011327022300: Param(s)
                                                90: Checksum
[2018-07-04 20:58:53.031] #1  FT5   01=Z-Way >> 04=ON-WZ Sen(B) - 0x220700402702230004011327022300
Complete used route = 01=Z-Way -> 04=ON-WZ Sen(B)

0E0D0C0B0445011C012000FA13270224007105000000FF06170000F4
0E0D0C0B: Home ID
        04: Source 04=ON-WZ Sen(B)
          4501: Frame Control
          4=0100
            0: routed=no
            1: ACK required=yes
            0: low power=no
            0: speed modified=no
           5: Frame Type=?NDef
            0: Beam Control (Battery support option)=no beam
             1: Sequence No=1
              1C: Total Length in Bytes=28
                01: Destination 01=Z-Way
                  2000FA13270224007105000000FF06170000: Param(s)
                                                      F4: Checksum
[2018-07-04 20:58:53.938] #1  FT5   04=ON-WZ Sen(B) >> 01=Z-Way - 0x2000FA13270224007105000000FF06170000
Complete used route = 04=ON-WZ Sen(B) -> 01=Z-Way

- What's the meaning of frame type=5? It is nowhere documented. And why is the device sending that?
- How do I get rid of that messages?
-
Raspberry Pi 3 Model B Rev 1.2
Linux raspberrypi 4.9.35-v7+ #1014 SMP Fri Jun 30 14:47:43 BST 2017 armv7l GNU/Linux
Raspbian GNU/Linux 8
Z-Way version v2.3.7 from 2018-03-23 09:28:53 +0300 (build b1902d4433d1337bd488834db3347fa7ef8f8a33)

User avatar
PoltoS
Posts: 4348
Joined: 26 Jan 2011 19:36

Re: "Cannot create vDev based on: 4-0-113: TypeError: Cannot read property 'forEach' of null"

Post by PoltoS » 07 Jul 2018 04:53

We need more logs or access to Z-Way with this device included to figure out what is wrong here

piet66
Posts: 36
Joined: 04 Feb 2017 17:00

Re: "Cannot create vDev based on: 4-0-113: TypeError: Cannot read property 'forEach' of null"

Post by piet66 » 07 Jul 2018 14:24

Hi PoltoS,
you have the communication (telegram contents) between device and Z-Way and the information from the log. What info do you need more?
-
Raspberry Pi 3 Model B Rev 1.2
Linux raspberrypi 4.9.35-v7+ #1014 SMP Fri Jun 30 14:47:43 BST 2017 armv7l GNU/Linux
Raspbian GNU/Linux 8
Z-Way version v2.3.7 from 2018-03-23 09:28:53 +0300 (build b1902d4433d1337bd488834db3347fa7ef8f8a33)

piet66
Posts: 36
Joined: 04 Feb 2017 17:00

Re: "Cannot create vDev based on: 4-0-113: TypeError: Cannot read property 'forEach' of null"

Post by piet66 » 07 Jul 2018 14:47

In the meantime I have intensively dealt with the problem and at last found a solution for me with a lot of effort.

Frame type=5 means 'Explorer Frame' (Z-Wave+ only). These frames are sent by a device if it has lost routing. They are forwarded by other devices until at last is reaches the receiver. The receiver answers with the route and thus we have a self-repairing function.

It's a miracle why my device was not able to send its telegrams via the normal route. It has worked since months and nobody has changed anything. And it's not clear why the self-repairing didn't work. As you see in my first post the receiver (Z-Way) has answered the requests. Maybe because it's a battery driven device?

The huge amount of notifications messages I believe is caused by a bug in module ZWave and may be another issue.

I tried many things to bring the correct route into the device again but nothing helped. At last I made a new inclusion of the device and now it works as correct as before.
This is of course unsatisfactory and maybe someone can tell me a better way to solve this in the future.
-
Raspberry Pi 3 Model B Rev 1.2
Linux raspberrypi 4.9.35-v7+ #1014 SMP Fri Jun 30 14:47:43 BST 2017 armv7l GNU/Linux
Raspbian GNU/Linux 8
Z-Way version v2.3.7 from 2018-03-23 09:28:53 +0300 (build b1902d4433d1337bd488834db3347fa7ef8f8a33)

Post Reply