New to the forms so please feel free to tell me I’m posting in the wrong place etc. no offence will be taken.
I’m looking for advice and pointers on the “best” way to go about designing an integration that tracks some data from my smart toothbrush (one of the Braun Oral-B bluetooth toothbrush).
I’d like to track:
- Last seen in use (or general on/off tracking)
- Last duration
I’ve got a proof of concept up and working by gutting the bluetooth le tracker, replacing the blutooth library with pyblue and then pounding on it with a wrench until I was able to interrogate the device and obtain the data.
This works and I can now see the battery and presence detection from the device_tracker platform. Smashing.
So next I wanted to:
- Learn a bit more about home assistant integrations
- Possibly build something that others can benefit from
I feel that using the device_tracker platform is possibly a little bit nasty but I’m new to the home assistant world so it’s unclear to me what a better architecture for my integration would look like.
One of the things is that the device is only available for interrogation shortly after it has been used. Ideally I would have a process scanning or listening and then update the state of, say a battery sensor platform.
Any pointers and advise would be gratefully received.
Also, sorry if I’m using the wrong nouns for platform/integration etc. as I said, I’m new to this and it trips me up occasionally