DIO remotes interpreted only as Nexa and Proove devices (not newkaku) #2789
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I've been testing rtl_433 with some DIO remotes but they are all interpreted only as Nexa and Proove devices (not newkaku) that have similar structure but interpreted differently. Some of these remotes have multiple buttons and the mqtt state messages allways send the same "channel" although they have different "unit" as we can see in the mqtt events messages. We need the "unit" to be present in the "state" messages so that we can configure separate devices in HA.
The 3 devices I have tested have the following ids:
0x01455A52
0x01BFF092
0x01C41472
MQTT messages received for one of these devices (2 buttons):
Mensagem 879 recebida em rtl_433/9b13b3f4-rtl433/devices/Nexa-Security/3/29356178/state às 11:02 :
ON
QoS: 0 - Retain: false
Mensagem 878 recebida em rtl_433/9b13b3f4-rtl433/events às 11:02 :
{"time":"2023-05-22T11:02:41.008220+0100","model":"Nexa-Security","id":29356178,"channel":3,"state":"ON","unit":3,"group":0}
QoS: 0 - Retain: false
Mensagem 967 recebida em rtl_433/9b13b3f4-rtl433/devices/Nexa-Security/3/29356178/state às 11:07 : <<<<< same channel
ON
QoS: 0 - Retain: false
Mensagem 966 recebida em rtl_433/9b13b3f4-rtl433/events às 11:07 :
{"time":"2023-05-22T11:07:05.844556+0100","model":"Nexa-Security","id":29356178,"channel":3,"state":"ON","unit":2,"group":0}
QoS: 0 - Retain: false
Lines 26/27 of:
https://github.com/merbanan/rtl_433/blob/master/src/devices/newkaku.c
reject any id with first byte different from 0x65 or 0x59 but the ids of my test devices start with 0x51, 0x6F and 0x71
** Remove first byte check **