diff --git a/tasmota/tasmota_xdrv_driver/xdrv_23_zigbee_6_0_commands.ino b/tasmota/tasmota_xdrv_driver/xdrv_23_zigbee_6_0_commands.ino index d9270b0d3..589779e7e 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_23_zigbee_6_0_commands.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_23_zigbee_6_0_commands.ino @@ -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) {