Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attributes publishing support for sensor component #980

Open
asergunov opened this issue Oct 18, 2024 · 1 comment
Open

Attributes publishing support for sensor component #980

asergunov opened this issue Oct 18, 2024 · 1 comment

Comments

@asergunov
Copy link

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?

  • 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?
@asergunov asergunov changed the title Attribute support for sensor component Attributes publishing support for sensor component Oct 18, 2024
@asergunov
Copy link
Author

Reposted here esphome/feature-requests#1635

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant