Device: Tuya _TZ3000_fllyghyj
Platform: Rpi4 8gb with RaspBee II
Version: 2.16.01 / 4/21/2022
So I recently bought a Tuya temperature and humidity sensor. And it has one of the most interesting name “_TZ3000_fllyghyj”. I had some issues connecting it but after some googling and experimenting I figured it out and it now shows in deCONZ and in the Phoscon App.
When I opened the sensor page it showed the entry but did not have a icon. And when I tried to open the sensor details to change the device its name it did not do anything. All I got was a javascript error in the DevTools console.
Being a programmer myself I checked if I could fix it myself. So the problem is that the device does not have an icon. Because it did not have an icon the device details page failed to show.
So I ssh’ed into my rpi and edited the device-sensors.js and I changed
html = html.replace("{icon}", sg.clone().outerSVG());
into
if (sg !== null)
{
html = html.replace("{icon}", sg.clone().outerSVG());
}
restarted deCONZ and refreshed the webapp and voilà (and there you have it) it worked. I can now rename the device and it show the device details (although limited).
So the technical side:
There is a dependency between the device icon and opening the device details. Why there is not an icon in the first place I have not investigated and I leave that up to you guys. Having such a dependency makes the webapp bridle (easy to break).