I'm trying to extend ESPHome to be able to send HA attributes with state.
The benefit of attributes over the state is the fact they are not limited by length.
Basically for HA it's a json text it can parse for you.
I'd like to put small sample of high frequency raw data with each sensor value and use it to visualize or process on Server side.
For example AC current curve has 50Hz period. I'd like to post one period of raw data as a list of floats with each averaged value. The shape of this curve is essential to understand the quality of device producing this load.
Another example is high frequency sensors like MAX30105 sampling 50-3600 times per second. And looking at the raw data is essential to develop algorithms processing this data.
It looks like there is an only way to implement it is extending this protocol. Could you please help me with some advice?
How this code goes to HA?
Will I be able to test my change locally on my setup?
What is the chance to have change like that merged to main branch?
Hello
I'm trying to extend ESPHome to be able to send HA attributes with state.
The benefit of attributes over the state is the fact they are not limited by length. Basically for HA it's a json text it can parse for you.
I'd like to put small sample of high frequency raw data with each sensor value and use it to visualize or process on Server side.
For example AC current curve has 50Hz period. I'd like to post one period of raw data as a list of floats with each averaged value. The shape of this curve is essential to understand the quality of device producing this load. Another example is high frequency sensors like MAX30105 sampling 50-3600 times per second. And looking at the raw data is essential to develop algorithms processing this data.
It looks like there is an only way to implement it is extending this protocol. Could you please help me with some advice?