Closed JacobChrist closed 1 year ago
Thanks for checking in! I believe this would be more productively addressed by Arduino Home Assistant, the library responsible for that class:
https://github.com/dawidchyrzynski/arduino-home-assistant https://github.com/dawidchyrzynski/arduino-home-assistant/blob/main/src/device-types/HABaseDeviceType.h
I agree, I'm only now realizing that your project is dependent on that library. I've never used VS Code for embedded development so I'm learning a few things right now.
I have opened this issue on the arduino-home-assistant repo: https://github.com/dawidchyrzynski/arduino-home-assistant/issues/168
I would be nice if the HABaseDeviceType class had a pointer to a struct (or class) that could be used to hold arbitrary data per users need. This would allow adding information that could be retrieved by a generic handler. This would allow you to do things like this: