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

Missing state_class: measurement prevents plotting #83

Open
jansorg opened this issue Sep 7, 2023 · 1 comment
Open

Missing state_class: measurement prevents plotting #83

jansorg opened this issue Sep 7, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@jansorg
Copy link

jansorg commented Sep 7, 2023

The problem

I have a sensor providing temperature and setpoint:

[my room]
address = 0x123456
rorg = 0xA5
func = 0x10
type = 0x03

In HA, the sensor doesn't have a state_class attached. Plotting the temperature in a statistics tile is only possible with a state_class value.
I added a custom mapping.yaml with a state_class: measurement for the device type above. After the change it was possible to plot the temperature (and setpoint).

I could certainly provide a PR for this change, but I'll probably won't be able to create a large one updating all temperature sensors, for example.

What type of installation are you running?

Docker

What version of HA_enoceanmqtt has the issue?

No response

What was the last working version of HA_enoceanmqtt?

No response

What type of Home Assitant installation are you running?

None

Anything in the logs that might be useful to solve the issue? (Strongly recommended if applicable)

No response

Additional information

No response

@mak-gitdev mak-gitdev added the enhancement New feature or request label Sep 7, 2023
@mak-gitdev
Copy link
Owner

Hi @jansorg,

Thanks for this one.
I will add a state_class entry in the configuration of entities that could require statistics.

Follow this issue

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

No branches or pull requests

2 participants