I have a worning come up that i don't know what to do with:
2018-5-12 11:58:25 WARN No converter available for 'WXKG02LM' with cid 'genBasic' and type 'attReport'
2018-5-12 11:58:25 WARN Please create an issue on https://github.com/Koenkk/zigbee2mqtt/issues with this message.
this is for a double switch, which works for left, right and both clicks. so not sure what this actually means!
Ah - i am trying to create a new converter for it...
though i am not too sure how it is generated
Its is probably reporting it's battery status, can you try adding a console.log(msg.data) on https://github.com/Koenkk/zigbee2mqtt/blob/master/lib/converters/zigbee2mqtt.js#L51 and add 'WXKG02LM' to https://github.com/Koenkk/zigbee2mqtt/blob/master/lib/converters/zigbee2mqtt.js#L46
What does it log?
just as an idea - can you automatically log the message? that way we already have the information that it is sending.
well - here's the log:
{ cid: 'genBasic',
data:
{ '65281':
{ '3': 39,
'5': 31,
'7': '0x0000000000000000',
'8': 4886,
'9': 513,
'100': 1,
'149': 26.913236618041992,
'150': 2380,
'152': 0,
'154': 16 } } }
it didn't seem to do anything though...
There is also another one for 'genBasic' and type 'devChange' i will try and capture it now.
looks like this:
{ cid: 'genBasic', data: { dateCode: '02-28-2017' } }
i am also getting this:
{ cid: 'genBasic',
data:
{ '65281':
{ '3': 38,
'5': 32,
'7': '0x0000000000000000',
'8': 4886,
'9': 769,
'100': 1,
'149': 26.916276931762695,
'150': 2380,
'152': 24.611000061035156,
'154': 16 } } }
{ cid: 'genBasic',
data:
{ '65281':
[ <3 empty items>,
38,
<1 empty item>,
32,
<1 empty item>,
'0x0000000000000000',
4886,
769,
<90 empty items>,
1,
<48 empty items>,
26.916276931762695,
2380,
<1 empty item>,
24.611000061035156,
<1 empty item>,
16 ] } }
{ cid: 'genBasic',
data:
{ '65281':
{ '3': 34,
'5': 8,
'7': '0x0000000000000000',
'8': 4886,
'9': 512,
'100': 1,
'149': 2.8065454959869385,
'150': 2380,
'152': 47.95199966430664,
'154': 16 } } }
{ cid: 'genBasic',
data:
{ '65281':
[ <3 empty items>,
34,
<1 empty item>,
8,
<1 empty item>,
'0x0000000000000000',
4886,
512,
<90 empty items>,
1,
<48 empty items>,
2.8065454959869385,
2380,
<1 empty item>,
47.95199966430664,
<1 empty item>,
16 ] } }
I don't see any useful information in these messages, perhaps it can be added to the ignore converters.
Will do, and I'll try and get around to a PR
I've added both 'WXKG02LM' and 'WXKG03LM' to the battery parser for now, it doesn't do any harm and maybe it does send battery status but we just haven't captured the message yet.
Most helpful comment
just as an idea - can you automatically log the message? that way we already have the information that it is sending.