We would like to update the state of device when it is controlled manually using switch. When ever we control the switch manually we are using socket.io to send the status as we are continuously listening to sockets.
We have checked for solution but no luck to implement the update.Characteristic in hap nodejs. We have the device UUID and new state from socket but how can we let the accessory know these and update its state in Home App.
Hey! Is your question related to Gladys or just a development question?
Hi, Its a development question. I have checked the Gladys source code related to Homekit and trying to work at my end.
Hello,
In our first version of Homekit integration, live update does not work. Do you check this PR to understand how we send new state to HomeKit?
GladysAssistant:master
← bertrandda:fix/homekit-notify
opened 09:42PM - 13 Nov 22 UTC
### Pull Request check-list
To ensure your Pull Request can be accepted as fa… st as possible, make sure to review and check all of these items:
- [x] If your changes affects code, did your write the tests?
- [x] Are tests passing? (`npm test` on both front/server)
- [x] Is the linter passing? (`npm run eslint` on both front/server)
- [x] Did you run prettier? (`npm run prettier` on both front/server)
- [x] Did you test this pull request in real life? With real devices? If this development is a big feature or a new service, we recommend that you provide a Docker image to [the community](https://community.gladysassistant.com/) for testing before merging.
- [x] If you are adding a new features/services which needs explanation, did you modify the user documentation? See [the GitHub repo](https://github.com/GladysAssistant/v4-website) and the [website](https://gladysassistant.com).
- [x] Did you add fake requests data for the demo mode (`front/src/config/demo.js`) so that the demo website is working without a backend? (if needed) See [https://demo.gladysassistant.com](https://demo.gladysassistant.com).
NOTE: these things are not required to open a PR and can be done afterwards / while the PR is open.
### Description of change
Add contact sensors (door, window...)
Fix bulb brightness range
Notifify HomeKit of new value