You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
asergunov
changed the title
Attribute support for sensor component
Attributes publishing support for sensor component
Oct 18, 2024
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?
The text was updated successfully, but these errors were encountered: