Closed absalom-muc closed 1 year ago
I made another test: After setup of the subscription I read back the according characteristics with
const resp = await connection.get('/characteristics?id=1.2674&ev=1');
response is
"characteristics":[{"aid":1,"iid":2674,"value":1621},"ev":true]
So it seems that enabling the event was successful, but I still can't see an event.
Try to read all attribute infos and check if the attribute you plan to subscribe also is subscribable. (Ev feature). In general i know that it is working.
The log show that in fact the device do not send any data. You can try to log the response returned by the subscribe command and see if in that body there is anything interesting but 204 normally means no errors.
Thanks for your feedback @Apollon77 According to the attribute it is subscribable.
{
"iid": 2674,
"type": "0000006B-0000-1000-8000-0026BB765291",
"format": "float",
"value": 0,
"perms": [
"pr",
"ev"
],
"ev": false,
"enc": false,
"unit": "lux",
"minValue": 0,
"maxValue": 100000,
"minStep": 1
}
However, since I'm looking for a HAP-MQTT bridge I decided to continue with ioBroker instead of reinventing the wheel. With ioBroker it is no problem to see the subscription and to bridge it to MQTT. Thank you again for your support.
When using your example subscribe-characteristics.js I see no error message but unfortunatelly also no event:
The disconnect message occurs few minutes after the subscription message. Any idea what goes wrong? Thank you.