[Zigbee] Fix negative tuya values (#24297)

* [Zigbee] Fix negative tuya values

* Update xdrv_23_zigbee_A_impl.ino

- Added SPACE between light color and value regarding to other value presentations
- Removed the 'json' parameter from ZigbeeShow, as it is not used

* Revert code optimizations

* get32IBigEndian
This commit is contained in:
SteWers 2026-01-03 23:29:32 +01:00 committed by GitHub
parent b4fcafd353
commit a9e75e7840
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -548,8 +548,8 @@ void parseSingleTuyaAttribute(Z_attribute & attr, const SBuffer &buf,
case 0x04: // enum 8 bits
attr.setUInt(buf.get8(i));
break;
case 0x02: // 4 bytes value (signed?)
attr.setUInt(buf.get32BigEndian(i));
case 0x02: // 4 bytes value (signed? Yes, signed!)
attr.setInt(buf.get32IBigEndian(i));
break;
case 0x03: // String (we expect it is not ended with \00)
{