Open
Description
Does the issue really belong here?
- I definitively want to report a bug within deCONZ or its REST-API
Is there already an existing issue for this?
- I have searched the existing issues and there is none for the bug at hand
Describe the bug
I see negative values reported for extaddress
, for instance:
{
"capabilities": {
"alerts": [
"none",
"select",
"lselect",
"blink",
"breathe",
"okay",
"channelchange",
"finish",
"stop"
],
"otau": {
"file_version": 16777220,
"image_type": 16649,
"manufacturer_code": 4476
},
"sleeper": false
},
"config": {
"bri": {
"execute_if_off": true,
"on_level": "previous",
"onoff_transitiontime": 4,
"startup": "previous"
},
"groups": [
"0",
"322",
"2",
"320"
],
"on": {
"startup": false
}
},
"ddf_hash": null,
"ddf_policy": "latest_prefer_stable",
"etag": "5e019f63bbe36f26a81e367495497495",
"extaddress": -8639569845441401000,
"hascolor": false,
"lastannounced": null,
"lastseen": "2024-12-02T19:29Z",
"manufacturername": "IKEA of Sweden",
"modelid": "TRADFRI Driver 10W",
"name": "Bedroom Cupboard",
"nwkaddress": 21832,
"productid": "ICPSHC2410EUIL2",
"state": {
"alert": "none",
"bri": 254,
"on": false,
"reachable": true
},
"swversion": "1.0.4",
"type": "Dimmable light",
"uniqueid": "88:1a:14:ff:fe:49:f0:b7-01"
}
Of course, the Mac Address is a 64-bit unsigned integer. RAttrExtAddress
is defined as such alright:
deconz-rest-plugin/resource.cpp
Line 389 in 8ae69a9
However, internally ResourceItem
stores numeric values as qint64
and ResourceItem::toNumber()
also returns a qint64
.
Steps to reproduce the behavior
Need PR #7979 to show extaddress
in the API, then request a lights
or sensors
resource for a device with a MAC address of 80:00:00:00:00:00:00 or greater.
Expected behavior
extaddress
should be shown as unsigned number.
Screenshots
No response
Environment
- Host system: all
- Running method: all
- Firmware version: all
- deCONZ version: 2.29.1 with PR Refactor
lightToMap()
andsensorToMap()
#7979. - Device: all
- Do you use an USB extension cable: n/a
- Is there any other USB or serial devices connected to the host system? If so: Which?
deCONZ Logs
No response
Additional context
No response