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

Energy price attribute "Tomorrow" not populating #70

Closed
AnonymousRetard opened this issue May 28, 2023 · 5 comments · Fixed by #73
Closed

Energy price attribute "Tomorrow" not populating #70

AnonymousRetard opened this issue May 28, 2023 · 5 comments · Fixed by #73

Comments

@AnonymousRetard
Copy link

AnonymousRetard commented May 28, 2023

Hello!

I just installed this component to my home assistant installation yesterday and today I started looking at some way to calculate at what hour it would be the cheapest to start a job that will use X amount of energy over Y amount of hours using the "Energy price" sensor with all the attributes with price per hour.

At the time of writing this the clock is 17:22 here and the attribute "Tomorrow valid" is still "false" and there's no data in the "Tomorrow" attribute. The data for today looks correct though. The state of this sensor is updating though, not just the attributes. Also other sensors provided by tibber_data seem to be updating.

I looked in the Tibber app and it does have prices for tomorrow (they should arrive after 13:00). I also took a look at https://developer.tibber.com/explorer and there I can also see prices for tomorrow.

Finally I tested restarting home assistant and this seems to have populated the "Tomorrow" data and "Tomorrow valid" is now true instead of false. Shouldn't this happen automatically or is it possible to manually trigger an update without restarting home assistant?

@Cptkex82
Copy link

+1 for this issue. Prices sensor needs to be manually restarted to work

@Cptkex82
Copy link

Cptkex82 commented May 28, 2023

I noticed there is errors on the log regarding this integration, could it be related?

Logger: homeassistant.components.sensor
Source: components/sensor/init.py:496
Integration: Sensor (documentation, issues)
First occurred: 10:14:44 (8 occurrences)
Last logged: 10:14:44

Entity sensor.yearly_consumption_hogrostavagen_5 (<class 'custom_components.tibber_data.sensor.TibberDataSensor'>) is using state class 'measurement' which is impossible considering device class ('energy') it is using; expected None or one of 'total', 'total_increasing'; Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.

Entity sensor.monthly_consumption_compared_to_last_year_hogrostavagen_5 (<class 'custom_components.tibber_data.sensor.TibberDataSensor'>) is using state class 'measurement' which is impossible considering device class ('energy') it is using; expected None or one of 'total', 'total_increasing'; Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.
Entity sensor.monthly_cost_with_subsidy_hogrostavagen_5 (<class 'custom_components.tibber_data.sensor.TibberDataSensor'>) is using state class 'measurement' which is impossible considering device class ('monetary') it is using; expected None or one of 'total'; Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.

Entity sensor.hogboxen_cost_day_2 (<class 'custom_components.tibber_data.sensor.TibberDataSensor'>) is using state class 'measurement' which is impossible considering device class ('monetary') it is using; expected None or one of 'total'; Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.

Entity sensor.hogboxen_cost_month_2 (<class 'custom_components.tibber_data.sensor.TibberDataSensor'>) is using state class 'measurement' which is impossible considering device class ('monetary') it is using; expected None or one of 'total'; Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.

@AnonymousRetard
Copy link
Author

Unfortunately I don't think it's related. There's a pull request to fix that one here already: #55

Although the correct solution to it doesn't seem to be fully worked out yet but either way I'm pretty sure it's not related to this error.

@Cptkex82
Copy link

Im noticing chatter that Nordpool that is the basis of Tibber prices is also malfunctioning in the same matter. Perhaps its related and the problem isnt this integration

@AnonymousRetard
Copy link
Author

I dug into the code a little bit and it looks like this integration is trying to update at a random time between 13:15 and 13:30 every day. Perhaps this is sometimes too soon even though tomorrows prices are supposed to be available at 13:00?

Perhaps something more robust is needed which keeps scheduling updates every I don't know 15, 30, 60 minutes, if tomorrows prices weren't received when expected?

I will try to monitor manually for a while if tomorrows prices consistently are available from their API after 13:15 every day...

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

Successfully merging a pull request may close this issue.

2 participants