Skip to content

subscribe to ble notify message for time update #4

@irakhlin

Description

@irakhlin

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions