Closed XciD closed 2 years ago
It should work if you set a default value.
char.SetValue(0)
Same, not working
192.168.1.249:51641 GET /accessories
{
"accessories": [{
"aid": 1,
"services": [{
"iid": 1,
"type": "3E",
"characteristics": [{
"iid": 2,
"type": "14",
"perms": ["pw"],
"format": "bool"
}, {
"iid": 3,
"type": "20",
"perms": ["pr"],
"value": "Spotify",
"format": "string"
}, {
"iid": 4,
"type": "21",
"perms": ["pr"],
"value": "undefined",
"format": "string"
}, {
"iid": 5,
"type": "23",
"perms": ["pr"],
"value": "Spotify",
"format": "string"
}, {
"iid": 6,
"type": "30",
"perms": ["pr"],
"value": "undefined",
"format": "string"
}, {
"iid": 7,
"type": "52",
"perms": ["pr"],
"value": "undefined",
"format": "string"
}]
}, {
"iid": 8,
"type": "49",
"characteristics": [{
"iid": 9,
"type": "25",
"perms": ["pr", "pw", "ev"],
"value": false,
"format": "bool"
}]
}, {
"iid": 10,
"type": "113",
"characteristics": [{
"iid": 11,
"type": "11A",
"perms": ["pr", "pw", "ev"],
"value": false,
"format": "bool"
}, {
"iid": 12,
"type": "00000047-0000-1000-8000-656261617577",
"perms": ["pr", "pw", "ev"],
"description": "Track Change",
"value": 0,
"format": "int32",
"maxValue": 1,
"minValue": -1,
"minStep": 1
}, {
"iid": 13,
"type": "119",
"perms": ["pr", "pw", "ev"],
"value": 0,
"format": "uint8",
"unit": "percentage",
"maxValue": 100,
"minValue": 0,
"minStep": 1
}]
}]
}]
}
Is this still an issue?
Hello,
I'm trying to define a custom characteristic like here in nodejs:
When I add this characteristic, Home+4 report:
No Response
Any pointer ?Thanks for your project