-
Notifications
You must be signed in to change notification settings - Fork 368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accessory with two services not handled correctly #426
Comments
Thanks for the report @LaborEtArs, I'll investigate this. |
This is just a thought. For example a nest thermostat has multiple accessories, and they all have an "aid" of 54. Then to get the actual "aid" i just run Math.floor(aid); |
According to the HAP specification, an accessory id, as well as the service id, should be a number in the range of [1, 18446744073709551615] (see extract below). @mkells: Are your modified ids visible to the Homekit (HAP) side of 'Homebridge', or 'only' used internaly? From 'HomeKit Accessory Protocol Specification R2':
|
Hi @LaborEtArs, Once again, thanks for reporting this. I was able to replicate this issue and have fixed it in v4.6.6. |
THX :-) Good job! |
Describe The Bug:
Added an accessory with two 'Outlet' services ('Out' and 'Out2'). Used cflurin's homebridge-mqtt to do so. The accessory displays correctly on iPhone 'Home' app (one button, that opens to a window showing two switches to toggle the outlets). When toggling any of the switches, the state is correctly transferred to the HW accessory (which is living on an ESP8266 controller driving a MQTT client).
When changing the state of any service inside the HW accessory the new state is also transferred to the Home app correctly. So everything seems to be OK on the foundation level.
The BUG: The accessory is shown in the homebridge-config-ui-x website as two separate buttons. The first works as expected, on state change (by toggling from the website or from the HW accessory) the the display state is updated correctly (On/Off). The second DOESN'T gets updated; neither when toggling the button in the website, nor when toggling the state form HW accessory side. Only a website refresh updates the button to the correct state. Im using Safari Version 13.0.4 on a Mac.
To Reproduce:
Create an accessory with two 'Outlet' services
Expected behavior:
The button for the second service should display the current state of the second accessory correctly.
Logs:
How to create logs; found nothing in the 'Contribution Guidelines'...
Homebridge Config:
Screenshots:
Environment:
The text was updated successfully, but these errors were encountered: