Closed Krillle closed 5 years ago
Example screen from Homebridge plugin https://github.com/Krillle/homebridge-signalk
Did your devices returns the SerialNumber by the REST HC2 API? Mine doesn't do it.
...
"saveLogs": "true",
"serialNumber": "",
"showEnergy": "true",
"smsNotificationID": "0",
"smsNotificationType": "0",
"updateVersion": "",
"useTemplate": "true",
"userDescription": "",
"value": "false"
},
Try a URL like this in your browser: http://@HC2/api/devices/
Regards
No, they don't. My proposal is to store in the field SerialNumber the original device name which is used in Fibaro HC, the name where the UUID is generated from. Means the name which is returned as "name" by the REST API.
I asked @lboue to include your change included in the #120 PR. You change is not valid since it's in the .js file not the .ts.
Fibaro saves the device ID in the default device name. In HomeKit this name is usually replaced by a more speaking name, often same name for same type of device in different rooms, like "ceiling lamp". Renamed to same same names the relation to the respective Fibaro device is only maintained by the room the device is in. If the room is messed up by mistake, it is hard to figure out the related Fibaro device again. Saving the Fibaro device name in the SerialNumber solves this issue. This SerialNumber is visible in the HomeKit device properties.
(I hope I figured out the right change for that.)