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

Fix expected device class for energy_day sensor #1377

Closed
elax46 opened this issue Apr 4, 2024 · 9 comments
Closed

Fix expected device class for energy_day sensor #1377

elax46 opened this issue Apr 4, 2024 · 9 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@elax46
Copy link

elax46 commented Apr 4, 2024

Hi everyone, I wanted to add the daily energy sensor in the individual devices section to the energy dashboard but HA gives me an error

The following entities do not have the expected device class:
sensor.sonoff_XXXXXX_energy_day

@AlexxIT AlexxIT added the bug Something isn't working label Apr 5, 2024
@AlexxIT AlexxIT self-assigned this Apr 5, 2024
@elax46
Copy link
Author

elax46 commented Apr 16, 2024

Hi @AlexxIT , will it take a long time to implement a fix?

@AlexxIT AlexxIT changed the title Energy day POWR316 sensor problem Fix expected device class for energy_day sensor Apr 16, 2024
@AlexxIT AlexxIT added this to the v3.7.0 milestone Apr 16, 2024
@AlexxIT
Copy link
Owner

AlexxIT commented Apr 17, 2024

@AlexxIT AlexxIT closed this as completed Apr 17, 2024
@elax46
Copy link
Author

elax46 commented Apr 17, 2024

thank you for your great work

@elax46
Copy link
Author

elax46 commented Apr 19, 2024

@AlexxIT after fix the sensor show negative value
Cattura

@AlexxIT
Copy link
Owner

AlexxIT commented Apr 19, 2024

This is not a sensor. It's energy tab. I'm not sure if this sensor can be used there

@elax46
Copy link
Author

elax46 commented Apr 19, 2024

I'm sorry why wouldn't it be possible to use it? my goal is to display the consumption of the single pow316 perhaps it would be more correct to use sensor.sonoff_XXX_power but from the individual devices section it is not possible to add it. I also created a sensor from W to KWh but the data comes out completely incorrect

@AlexxIT
Copy link
Owner

AlexxIT commented Apr 19, 2024

Because it's data from cloud with daily energy. It is reset to zero every day, resulting in negative values in the statistics

@elax46
Copy link
Author

elax46 commented Apr 19, 2024

Because it's data from cloud with daily energy. It is reset to zero every day, resulting in negative values in the statistics

Yes, you are absolutely right about the daily sensor but why is it not possible to insert the power sensor in Watts? I have other devices and with the watt sensor it works @AlexxIT

@AlexxIT
Copy link
Owner

AlexxIT commented Apr 19, 2024

I don't know what you getting via this sensor. I have never seen it alive. I don't have any similar devices.
You can implement any code yourself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants