-
Notifications
You must be signed in to change notification settings - Fork 3
subscribe to ble notify message for time update #4
Description
Hey there,
I had been working on the integration for a similar toothbrush (Sonicare hx992x) that seems to have a few extra features but would love merge the work when I can figure out a good way to determine the model unfortunately at this point it seems that requires a direct connection to read one of the characteristics. Let me know if you come up with any good way to integrate this back into HA.
Additionally, I was thinking for the brush time, polling seems to be a sub optimal way to update that parameter and started to mess with subscribing with a callback to the BleakClient using client.start_notify on the brush time parameter. I was able to register a test function as the callback to simply output to logging and see an updated parameter every second or two but am still playing around with how this callback would actually update the state. Let me know if you have any ideas on this.