1
mirror of https://github.com/home-assistant/core synced 2024-07-30 21:18:57 +02:00
Commit Graph

39 Commits

Author SHA1 Message Date
GitHub Action
c76e15149c [ci skip] Translation update 2021-10-17 00:12:27 +00:00
Erik Montnemery
a5603c0076
Improve warning prints for sensor statistics (#57605) 2021-10-13 08:15:04 -07:00
Paulus Schoutsen
11ed70b774
Fix energy gas price validation (#57075) 2021-10-04 20:52:40 -07:00
GitHub Action
f42c2f5170 [ci skip] Translation update 2021-10-02 12:59:05 +00:00
Marc Mueller
d51487f82a
Import Callable from collections.abc (3) (#56777) 2021-09-29 16:19:06 +02:00
Franck Nijhof
41e5f05d99
Fix energy validation when not tracking costs (#56768) 2021-09-29 13:24:34 +02:00
Erik Montnemery
efe467217a
Don't round in energy cost sensor (#56258) 2021-09-27 12:01:17 +02:00
Erik Montnemery
83156fb9ec
Energy validation: Require last_reset attribute to be set for state_class measurement energy and cost sensors (#56254)
* Require last_reset attribute to be set for measurement state_class

* Tweak

* Improve tests

* Lint

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-09-22 21:48:37 -07:00
Erik Montnemery
f77e93ceeb
Fix validation of cost entities for energy dashboard (#56219) 2021-09-22 13:57:58 -07:00
Erik Montnemery
bac55b78fe
Enforce device class for gas and energy sensors used by energy dashboard (#56218)
* Enforce device class for gas and energy sensors used by energy dashboard

* Adjust tests
2021-09-14 16:56:36 +02:00
Erik Montnemery
443147e132
Wait for entities when updating energy preferences (#56057) 2021-09-10 09:07:52 -07:00
Erik Montnemery
78909b5227
Add support for state class total to energy cost sensor (#55955)
* Add support for all state classes to energy cost sensor

* Fix bug, adjust tests

* Fix rebase mistake
2021-09-10 09:05:32 +02:00
Erik Montnemery
bb6c2093a2
Add support for state class measurement to energy cost sensor (#55962) 2021-09-08 12:46:28 -07:00
Paulus Schoutsen
ec337101dd
Fix gas validation (#55886) 2021-09-07 20:53:43 -07:00
Paulus Schoutsen
7c5a0174ba
Add an energy solar platform for solar forecasts (#54576)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-08-25 11:37:03 -07:00
Erik Montnemery
bb42eb1176
Warn if a sensor with state_class_total has a decreasing value (#55197) 2021-08-25 13:01:55 +02:00
Erik Montnemery
fa9f91325c
Allow small dip in total_increasing sensor without detecting a reset (#55153) 2021-08-24 17:23:55 +02:00
Erik Montnemery
8877f37da0
Fix statistics for sensors setting last_reset (#55136)
* Re-add state_class total to sensor

* Make energy cost sensor enforce state_class total_increasing

* Drop state_class total

* Only report energy sensor issues once
2021-08-24 17:02:34 +02:00
Paulus Schoutsen
2f77b5025c
Add energy validation (#54567) 2021-08-18 11:21:51 -07:00
Erik Montnemery
e1926caeb9
Remove STATE_CLASS_TOTAL and last_reset from sensor (#54755)
* Remove STATE_CLASS_TOTAL

* Update mill sensor

* Update tests

* Kill last_reset

* Return ATTR_LAST_RESET to utility_meter

* Update energy cost sensor

* Restore last_reset for backwards compatibility

* Re-add and update deprecation warning

* Update tests

* Fix utility_meter

* Update EnergyCostSensor

* Tweak

* Fix rebase mistake

* Fix test
2021-08-18 10:03:27 +02:00
Bram Kragten
eb278834de
Add gas support to energy (#54560)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-08-13 10:39:16 -07:00
GitHub Action
0626542a14 [ci skip] Translation update 2021-08-12 00:14:10 +00:00
Erik Montnemery
41f3c2766c
Move temperature conversions to entity base class (2/8) (#54468) 2021-08-11 18:57:12 +02:00
Bram Kragten
f020d65416
Add battery support to energy (#54432) 2021-08-11 09:49:56 -07:00
GitHub Action
af565ea6bd [ci skip] Translation update 2021-08-08 00:11:15 +00:00
GitHub Action
98bcdc2cf5 [ci skip] Translation update 2021-08-07 00:10:12 +00:00
GitHub Action
64c9f9e1cb [ci skip] Translation update 2021-08-06 00:15:04 +00:00
GitHub Action
ba93bda3ad [ci skip] Translation update 2021-08-05 00:34:46 +00:00
GitHub Action
d6c3d05517 [ci skip] Translation update 2021-08-03 00:10:03 +00:00
Joakim Sørensen
c3d623a37e
Fix issue when data is None (#53875) 2021-08-02 19:35:11 +02:00
Joakim Sørensen
1c38e9168c
Add base energy analytics (#53855) 2021-08-02 09:46:07 -07:00
GitHub Action
8c5620e74b [ci skip] Translation update 2021-08-02 03:40:04 +00:00
Paulus Schoutsen
2cbcd5f2a9
Cost sensor handle consumption sensor in Wh (#53746) 2021-07-30 11:00:52 +02:00
Daniel Hjelseth Høyer
24a589961a
Energy round (#53696)
* Energy. Round cost

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>

* Energy. Round cost

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>

* Update homeassistant/components/energy/sensor.py

Co-authored-by: Franck Nijhof <git@frenck.dev>

Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-07-29 18:44:38 +02:00
Bram Kragten
4df56bad9e
Remove currency from energy, use core config (#53615)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-07-28 08:49:55 -07:00
GitHub Action
2b3148296c [ci skip] Translation update 2021-07-27 00:12:20 +00:00
Oxan van Leeuwen
2127314f9e
Fix typo in codeowners (#53520) 2021-07-26 23:33:15 +02:00
Franck Nijhof
f28d8fae2f
Mark energy integration as internal (#53513) 2021-07-26 10:21:40 -07:00
Bram Kragten
fcc6ea7497
Add energy integration (#52001)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
Co-authored-by: Erik <erik@montnemery.com>
2021-07-26 09:37:37 -07:00