[X] I definitively want to report a bug within deCONZ or its REST-API
Is there already an existing issue for this?
[X] I have searched the existing issues and there is none for the bug at hand
Describe the bug
Found during https://github.com/dresden-elektronik/deconz-rest-plugin/issues/7925
The Sunricher vendor 's Namron manufacturer have released, for the similar HW device 4512719 two Firmware with different manufacturer names.
Firmware 2.5.3_r20 presents manufacturername = "NAMRON AS" (note two spaces between N & A)
Firmware 2.5.3_r21 presents manufacturername = "NAMRON AS" (note one space between N & A)
Now, in /usr/share/deConz/devices/sunricher/4button_switch.json DDF, only the first listed NAMRON AS entry is parsed correctly.
With a DDF like:
"NAMRON AS",
"NAMRON AS",
Switches with r20 FW is not picked up, and Adding fails.
Changing to:
"NAMRON AS",
"NAMRON AS",
and the Add succeeds.
Steps to reproduce the behavior
Like described in Bug description.
Expected behavior
Expected DDF parsing to pick up either one of the two NAMRON manufacturer names, not just the first one.
Screenshots
NA
Environment
Host system: Raspberry Pi & PC
Running method: Raspbian & Ubuntu
Firmware version: 26400500
deCONZ version 2.28.1
Device: ConBee I
Do you use an USB extension cable: yes + a powered HUB
Is there any other USB or serial devices connected to the host system? No
deCONZ Logs
This is from an (unsuccessful) attempt with an r20 switch and the NAMRON with 2 spaces second in the manufacturername list:
45: 21:56:25:217 DDF identifier pair: NAMRON AS | 4512719
15557: 21:56:25:590 Sqlite group: name = 4512719 38
15563: 21:56:25:590 DB found group 4512719 38 0xEE01
15565: 21:56:25:590 Sqlite group: name = 4512719 38
15571: 21:56:25:590 DB found group 4512719 38 0xEE02
16555: 21:56:25:630 Sqlite sensors: modelid = 4512719
17912: 21:56:26:933 DEV modelId: 4512719, 0x60A423FFFE60F3DB
20490: 21:56:28:038 Websocket 127.0.0.1:36090 send message: {"attr":{"id":"44","lastannounced":null,"lastseen":"2024-09-15T19:56Z","manufacturername":"NAMRON AS","mode":1,"modelid":"4512719","name":"Switch 44 K4 Guestroom","swversion":"2.5.3_r21","type":"ZHASwitch","uniqueid":"60:a4:23:ff:fe:60:f3:db-01-0006"},"e":"changed","id":"44","r":"sensors","t":"event","uniqueid":"60:a4:23:ff:fe:60:f3:db-01-0006"} (ret = 347)
22691: 21:57:24:854 84:2e:14:ff:fe:90:13:5f/attr/modelid expression: Item.val = Attr.val --> 4512719
22698: 21:57:24:857 DEV modelId: 4512719, 0x842E14FFFE90135F
22699: 21:57:24:857 try load DDF from disc for NAMRON AS -- 4512719
37647: 21:57:30:005 DEV no DDF for 0x842E14FFFE90135F, modelId: 4512719
This is from an (successful) attempt with an r20 switch and the NAMRON with 2 spaces first in the manufacturername list:
Tested on both a RPi4 and a Ubuntu 22.04 PC.
I have not tried with a r21 switch with the DDF that works for the r20 ...
Do you have unit tests for this?
Does the issue really belong here?
Is there already an existing issue for this?
Describe the bug
Found during https://github.com/dresden-elektronik/deconz-rest-plugin/issues/7925 The Sunricher vendor 's Namron manufacturer have released, for the similar HW device 4512719 two Firmware with different manufacturer names. Firmware 2.5.3_r20 presents
manufacturername = "NAMRON AS"
(note two spaces between N & A) Firmware 2.5.3_r21 presentsmanufacturername = "NAMRON AS"
(note one space between N & A)Now, in /usr/share/deConz/devices/sunricher/4button_switch.json DDF, only the first listed NAMRON AS entry is parsed correctly.
With a DDF like:
Switches with r20 FW is not picked up, and Adding fails. Changing to:
and the Add succeeds.
Steps to reproduce the behavior
Expected behavior
Expected DDF parsing to pick up either one of the two NAMRON manufacturer names, not just the first one.
Screenshots
NA
Environment
deCONZ Logs
This is from an (unsuccessful) attempt with an r20 switch and the NAMRON with 2 spaces second in the manufacturername list:
This is from an (successful) attempt with an r20 switch and the NAMRON with 2 spaces first in the manufacturername list:
Additional context
Tested on both a RPi4 and a Ubuntu 22.04 PC. I have not tried with a r21 switch with the DDF that works for the r20 ... Do you have unit tests for this?