Design question. I am reading CAN bus data via esphome. But I want to do the processing of the data within a custom integration. What is the fastest and easiest way to transfer the read CAN data ( 8 bytes ) to a HA custom integration
Can you have this component inside esphome such as a custom component?
Make it an entity in HA, and have your custom integration work with existing entities.
Then:
- HA can work with that data in many ways (eg automations)
- Your custom integration can work with that data no matter how it arrives in HA
I was thinking the same but can esphome create sensors to transfer byte (not simple type) data?
Another integration can create new entities coming from respective esphome device, I am also lost how to manage integration to device mapping?
Sounds great!
So can I create an entity that stores 8 bytes of binary data?
Probably not as binary, but Base64 certainly. May well be possible though, I’m no HA dev
Did you found a solution ? I am trying to do something similar but I do not know how to do that efficiently
Yes.
I have documented it here.
thanks I will look at it carefully
I watch the video and it is excellent. I trying to do something similar but from a heat pump can bus so now I will look at your code! Thanks again great integration