Danielhiversen / home_assistant_tibber_data

Display Tibber data sensors.
MIT License
39 stars 11 forks source link

Thrird (3rd) hightest hourly consumption? #50

Open Kjetil90 opened 1 year ago

Kjetil90 commented 1 year ago

Would it be possible to add a sensor for the third hightest consumption hour? (the lowest of the three hours that make up the average hightest consumption) That would make it possible to adjsut my consumption limit accordingly to not pass my monthly limit ex: 5kwh

Example: I have made my autmations to keep me below 5 kwh (Elvia trinn 2), but if i for some reason have one hour of 6kwh, the third hightest must be below 4kwh to still keep me in "Elvia trinn 2". A sensor for the third highest, or maybe 3 seson for each of the three highest consumption hours, wil help creation automations for "power managing" :-)

Danielhiversen commented 1 year ago

They are available as attributes from sensor.average_of_3_highest_hourly_consumption_xxxxx Does that work for you?

Kjetil90 commented 1 year ago

I'll have to play arround with some templating to make it work, but it would probably help my case. Thank U ! :-)

FSHelgeland commented 1 year ago

They are available as attributes from sensor.average_of_3_highest_hourly_consumption_xxxxx Does that work for you?

I can not find that sensor, so until now I have displayed data for sensor.monthly_peak_hour_consumption. Actually deleted the integration today and reinstalled it with no luck. I can not either find that sensor in the NodeRed application.

FSHelgeland commented 1 year ago

Read and understand what you read, I try to tell that to my students. I didnt understand, but when I finally did, this worked as a charm. TY, @Danielhiversen.