Open 9Mad-Max5 opened 4 years ago
a similar situation. the connection to the device is constantly lost. Only restarting the adapter helps. Is it possible to add any kind of connection check??
log when there is no connection:
stateChange error invalid id type: RM:0x279d_78:0f:77:00:d0:f5.L.CODE_b200ae01360b150b0b15160b0b15160a0c150b150c15160a0b150c150b150b16160a0c150b15150b160b160a160a0c150b15160b150b160a0c150b150b160b150b160b150b15160b160a0c14160b160a160b150b160b150da052350b150b0c15150b0b15160b0b150c140c15160a0b160b150b150c15160a0b160b15160b150b160a160b0b150b15160b160a160a0c150b160b150b150b160b150b15160b150b0b15160b160a160b150b160a160da150360a160b0b15160b0b15160b0b150b160b15160a0c150b150b150c15150b0b160b15160a160b150b160a0c150c15150b160a160a0c150b160b150b150c150b150c15150b160a0c15150b160a160b160a160b150da151350b150b0b15160b0b15160b0b150b150c15160a0b160b150c140c15160b0b150b15160b150b160a160b0b150b16150b160a160b0b150b150c150b150c150b150b16150b160a0c15150b160a160b150b160a160da150360b150b0b15170a0b15160b0b150b150c15160b0b150b150c150b15160b0b140c15160b150b160a160b0b150b16150b160a160b0b150b160b150b150c150b150b16150b160a0c15160a160b150b160a160b150005dc00000000000000000000=RM:0x279d_78:0f:77:00:d0:f5 {val: true,ack: false,ts: 1629448067905,q: 0,from: 'system.adapter.admin.0',user: 'system.user.admin',lc: 1592841668940}
log after restart:
broadlink2.0 | 2021-08-20 11:29:58.538 | info | found macs: 78:0f:77:00:d0:f5
-- | -- | -- | --
broadlink2.0 | 2021-08-20 11:29:58.537 | info | broadlink2.0 started and found 1 devices named RM:0x279d_78:0f:77:00:d0:f5
broadlink2.0 | 2021-08-20 11:29:58.537 | info | Poll every 120 secods.
broadlink2.0 | 2021-08-20 11:29:54.176 | info | discover [ '192.168.1.111' ] from 192.168.1.100:32920
broadlink2.0 | 2021-08-20 11:29:54.175 | info | interface to be used: { netmaskBits: 24, address: '192.168.1.100/24', addrs: [ 192, 168, 1, 100 ], cidr: '192.168.1.100/24', bcaddr: '192.168.1.255' }:
broadlink2.0 | 2021-08-20 11:29:54.175 | info | interface to be used: { netmaskBits: 16, address: '172.23.0.2/16', addrs: [ 172, 23, 0, 2 ], cidr: '172.23.0.2/16', bcaddr: '172.23.255.255' }:
broadlink2.0 | 2021-08-20 11:29:49.492 | info | Device RM:0x279d_78:0f:77:00:d0:f5 detected: address=192.168.1.111, mac=78:0f:77:00:d0:f5, typ=RMP, id=0x279d devtype=RM3 Pro Plus
broadlink2.0 | 2021-08-20 11:29:48.956 | info | discover [ '172.23.255.255', '192.168.1.255', '255.255.255.255', '224.0.0.251' ] from 192.168.1.100:56567
broadlink2.0 | 2021-08-20 11:29:48.956 | info | interface to be used: { netmaskBits: 24, address: '192.168.1.100/24', addrs: [ 192, 168, 1, 100 ], cidr: '192.168.1.100/24', bcaddr: '192.168.1.255' }:
broadlink2.0 | 2021-08-20 11:29:48.955 | info | interface to be used: { netmaskBits: 16, address: '172.23.0.2/16', addrs: [ 172, 23, 0, 2 ], cidr: '172.23.0.2/16', bcaddr: '172.23.255.255' }:
broadlink2.0 | 2021-08-20 11:29:48.944 | info | Discover Broadlink devices for 10sec on broadlink2.0
broadlink2.0 | 2021-08-20 11:29:48.943 | info | macObjects: [ '78:0f:77:00:d0:f5' ]
broadlink2.0 | 2021-08-20 11:29:48.943 | info | interface to be used: { netmaskBits: 24, address: '192.168.1.100/24', addrs: [ 192, 168, 1, 100 ], cidr: '192.168.1.100/24', bcaddr: '192.168.1.255' }:
broadlink2.0 | 2021-08-20 11:29:48.942 | info | interface to be used: { netmaskBits: 16, address: '172.23.0.2/16', addrs: [ 172, 23, 0, 2 ], cidr: '172.23.0.2/16', bcaddr: '172.23.255.255' }:
broadlink2.0 | 2021-08-20 11:29:48.941 | info | broadlink2 has 1 old devices!
broadlink2.0 | 2021-08-20 11:29:48.940 | info | Devices to rename:
broadlink2.0 | 2021-08-20 11:29:48.940 | info | Devices to add:
broadlink2.0 | 2021-08-20 11:29:48.940 | info | Scanning additional IP's: 192.168.1.111
broadlink2.0 | 2021-08-20 11:29:48.938 | info | broadlink2 initialization started...
broadlink2.0 | 2021-08-20 11:29:48.845 | info | starting. Version 2.1.5 in /opt/iobroker/node_modules/iobroker.broadlink2, node: v12.22.1, js-controller: 3.3.15
broadlink2.0 | 2021-08-20 11:29:43.725 | info | Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
broadlink2.0 | 2021-08-20 11:29:43.724 | info | terminating
broadlink2.0 | 2021-08-20 11:29:43.723 | info | Adapter disconnected and stopped with dostop(null) and callback(true)
broadlink2.0 | 2021-08-20 11:29:43.645 | info | Close all connections...
broadlink2.0 | 2021-08-20 11:29:43.620 | info | Got terminate signal TERMINATE_YOURSELF
After every iobroker restart the connection to the Broadlink devices is lost. The iobroker instance is restarting every night at 3 o clock.
After an adapter restart the Broadlink is found again. The used version is 2.1.5