Closed jrehwaldt closed 2 years ago
Could you post your device metadata ?
Could you post your device metadata ?
Sure. Do you have some documentation somewhere where I get them from?
Could you post your device metadata ?
Sure. Do you have some documentation somewhere where I get them from?
Just read the msg.meta value from à get node
{
"etag": "453808ffafae3f948c4f30e86162c75d",
"hascolor": false,
"lastannounced": null,
"lastseen": "2021-12-05T20:17Z",
"manufacturername": "Sunricher",
"modelid": "HK-LN-DIM-A",
"name": "Living Room/Table Lamp",
"state": {
"alert": "none",
"bri": 66,
"on": false,
"reachable": true
},
"swversion": "2.5.3_r49",
"type": "Dimmable light",
"uniqueid": "68:0a:e2:ff:fe:a4:48:26-01",
"device_type": "lights",
"device_id": 7,
"device_path": "lights/uniqueid/68:0a:e2:ff:fe:a4:48:26-01"
}
{
"etag": "abfd4686a24ab1762465f2c8961fc3c9",
"hascolor": false,
"lastannounced": null,
"lastseen": "2021-12-05T20:14Z",
"manufacturername": "_TZ3000_kdi2o9m6",
"modelid": "TS011F",
"name": "Living Room/Christmas Star",
"state": {
"alert": "none",
"on": true,
"reachable": true
},
"swversion": "66",
"type": "On/Off plug-in unit",
"uniqueid": "60:a4:23:ff:fe:05:50:8e-0b",
"device_type": "lights",
"device_id": 15,
"device_path": "lights/uniqueid/60:a4:23:ff:fe:05:50:8e-0b"
}
Ah I see, hascolor is false, I will make à fix tomorrow
Thanks. Works like a charm 👍 (also the deconz-input indicator)
Current Behavior
When creating a Homekit integration for a device without color, eg. dimmable light or on/off switch, deconz-out crashes with the following stack trace:
The issue is that the property
deviceMeta.device_colorcapabilities
isundefined
for devices without colour support:https://github.com/deconz-community/node-red-contrib-deconz/blob/86da6f8990fdbe25bcbc06444023666973429f50/src/runtime/CommandParser.js#L170
Expected Behavior
It should not crash and the Homekit action should be performed on the device.
Steps To Reproduce
Create a sequence deconz-input -> homekit service -> deconz-out with a non-color device.
(On a side note and unrelated: Please also note the wrongly formatted output
[object Object]
in the UI on the deconz-input node).Example flow
Environment