Commit graph

69 commits

Author SHA1 Message Date
epenet
52d4a358a0
Use UnitOfPower in integrations [s-z] (#83826) 2022-12-12 12:20:16 +01:00
Daniel Hjelseth Høyer
845ce5c6ea
Tibber, fix date parsing (#83067)
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
2022-12-01 20:36:46 +02:00
Erik Montnemery
607a0e7697
Reduce size of get_statistics_during_period WS API response (#82131) 2022-11-16 17:36:30 +01:00
Martin Hjelmare
ecb7509333
Add tibber price sensor state class (#82189) 2022-11-16 15:12:08 +01:00
Daniel Hjelseth Høyer
e3233f72ce
Tibber strict typing (#79407)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-10-26 12:41:23 +02:00
Erik Montnemery
2de273500e
Remove state_unit_of_measurement from metadata DB table (#79370)
* Remove state_unit_of_measurement from metadata DB table

* Adjust test
2022-10-01 18:55:00 +02:00
Erik Montnemery
dd20a7ea62
Display statistics in the source's unit (#78031) 2022-09-15 12:01:24 -04:00
epenet
458001a06e
Improve entity type hints [t] (#77883) 2022-09-06 13:35:52 +02:00
Erik Flodin
9e66b30af9
Add new sensors for energy produced (via Tibbber) (#76165)
The new sensors tibber:energy_(production|profit)_<home_id> are like the
existing consumption/totalCost ones except that they report outgoing
energy instead of incomeing.
2022-08-23 10:02:58 +02:00
Daniel Hjelseth Høyer
40fba130e8
Tibber, Use a dedicated executor pool for database operations (#69208) 2022-04-03 20:22:03 +02:00
Marc Mueller
830cc278d3
Improve CoordinatorEntity typing (#68441) 2022-03-21 10:22:30 +01:00
Marc Mueller
67e94f2b4b
Add type ignore error codes [N-Z] (#66779) 2022-02-18 09:41:12 +01:00
Daniel Hjelseth Høyer
3733aa9494
Add more sensors for users with Tibber Pulse (#66201)
* Tibber, Add stats and sensors for homes with real time meter

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

* Tibber stats

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

* Monthly peak hour
2022-02-10 08:47:34 +01:00
Daniel Hjelseth Høyer
0e0ef0aa17
Tibber cost statistics (#63626)
* Tibber cost statistics

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

* Tibber cost statistics

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

* unit

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

* unit

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

* Update homeassistant/components/tibber/sensor.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Update homeassistant/components/tibber/sensor.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* break lines

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

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-01-09 12:20:53 +01:00
Daniel Hjelseth Høyer
04796c4410
Add missing last_rest in Tibber (#61914) 2022-01-07 16:57:52 +01:00
epenet
a4fdaffb14
Add setup type hints [t-u] (#63480)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-05 17:19:19 +01:00
Daniel Hjelseth Høyer
ba1b09a3a5
Add external Tibber statistics (#62249)
* Tibber, add external statistics

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

* Tibber, add external statistics

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

* Tibber ext stats

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

* Add tests

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

* name

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
2022-01-05 09:33:12 +01:00
Daniel Hjelseth Høyer
9c749682bf
Add Tibber peak hour, monthly consumption and monthly cost sensors (#61853)
* Tibber, Consumption data

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

* Tibber sensors

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

* Tibber, Consumption data

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

* Add peak_hour_time

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
2021-12-17 12:55:16 +01:00
Daniel Hjelseth Høyer
b1b3079d07
Add Tibber estimated hour consumption sensor (#62003) 2021-12-16 12:15:40 +01:00
Daniel Hjelseth Høyer
eae1e669d0
Use new EntityCategory enum in Tibber (#61279) 2021-12-08 22:04:11 +01:00
Daniel Hjelseth Høyer
ecf1bc1b22
Use state class enum in Tibber (#60729) 2021-12-01 15:50:35 +01:00
Daniel Hjelseth Høyer
bcb2fefbe5
Use device class enum in Tibber (#60705) 2021-12-01 11:00:17 +01:00
Daniel Hjelseth Høyer
70b8decfb5
Replace Tibber STATE_CLASS_TOTAL_INCREASING with STATE_CLASS_TOTAL for not strictly increasing sensors (#60501)
* Tibber, fix #60490 not strictly increasing

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

* Tibber, fix #60490 not strictly increasing

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

* Tibber, fix #60490 not strictly increasing

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
2021-11-29 08:22:48 +01:00
Daniel Hjelseth Høyer
bb99d07d82
Remove unused constant in Tibber (#60439) 2021-11-27 11:18:58 +01:00
Marc Mueller
62c20860ac
Use assignment expressions 22 (#57971) 2021-10-21 08:33:10 +02:00
Daniel Hjelseth Høyer
dd2d708cb9
Add category diagnostic to Tibber signal sensor (#57840) 2021-10-17 07:25:49 -10:00
Daniel Hjelseth Høyer
4300f1de46
Use DeviceInfo class (#57868) 2021-10-16 14:51:10 -07:00
Erik Montnemery
0329d0f246
Remove last_reset attribute and set state class to total_increasing for tibber energy sensors (#54799)
* Remove last_reset attribute from tibber energy sensors

* Remove reset_type, fix merge

* Update homeassistant/components/tibber/sensor.py

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

Co-authored-by: Daniel Hjelseth Høyer <mail@dahoiv.net>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-08-18 14:18:51 +02:00
Daniel Hjelseth Høyer
102af02d8a
Tibber data coordinator (#53619)
* Tibber data coordinator

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

* Fix comments

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

* Fix comments

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

* Fix comments

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

* Remove whitespace

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-08-18 11:21:39 +02:00
Daniel Hjelseth Høyer
b2f73b3c69
Fix Tibber last reset (#54582)
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
2021-08-15 19:57:18 -07:00
Erik Montnemery
94a264afaf
Move temperature conversions to entity base class (7/8) (#54482) 2021-08-11 18:57:50 +02:00
Daniel Hjelseth Høyer
e4fe27061a
Add STATE_CLASS_MEASUREMENT to Tibber (#53802) 2021-08-02 11:50:52 +02:00
Marc Mueller
f599c5a39e
Use EntityDescription - tibber (#53569) 2021-07-27 20:13:48 +02:00
Daniel Hjelseth Høyer
9b2d98f027
Tibber, use nameclass (#53242) 2021-07-21 08:56:29 +02:00
Marc Mueller
074d762664
Rename and reorganize electric unit constants (#53243) 2021-07-20 20:06:23 +02:00
Daniel Hjelseth Høyer
0cc4231ac2
Tibber use dataclass (#53233)
* Tibber, use dataclass

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

* Tibber, use dataclass

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
2021-07-20 17:57:35 +02:00
Daniel Hjelseth Høyer
d17776af87
Tibber, accumulated reward (#53195)
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
2021-07-20 12:28:50 +02:00
Daniel Hjelseth Høyer
1676bf220f
Tibber, add device class monetary to accumulated cost (#52259)
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
2021-06-28 20:58:27 -07:00
Daniel Hjelseth Høyer
f1b5183e47
Tibber power factor (#52223) 2021-06-27 16:49:22 +02:00
Daniel Hjelseth Høyer
e039a9d37b
Tibber, correct generate a 0-timestamp (#52165)
* Tibber, correct generate a 0-timestamp

* import

Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
2021-06-24 21:18:46 +02:00
Daniel Hjelseth Høyer
634f6ba77b
Fix missing Tibber power production (#51505)
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
2021-06-05 11:50:56 +02:00
Daniel Hjelseth Høyer
1062acfe9b
Fix Tibber Pulse device name and sensor update (#51402) 2021-06-03 11:59:22 +02:00
Daniel Hjelseth Høyer
31bd41582b
Fix Tibber timestamps parsing (#51368) 2021-06-02 08:16:04 -07:00
Daniel Hjelseth Høyer
3a6a1a4d6b
Tibber, state class (#50951) 2021-05-25 13:53:16 -07:00
Daniel Hjelseth Høyer
e9c787a5eb
Use entity class vars in Tibber (#50977)
* Use entity class vars in Tibber

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

* Update homeassistant/components/tibber/sensor.py

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

* Update homeassistant/components/tibber/sensor.py

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

* Use entity class vars in Tibber

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

* Use entity class vars in Tibber

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

Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-05-25 13:35:18 +02:00
Daniel Hjelseth Høyer
2945c79c5a
Tibber sensors (#50418)
* Tibber, split attribute to sensors

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

* Tibber, split attribute to sensors

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

* Tibber, split attribute to sensors

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

* Update homeassistant/components/tibber/sensor.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* fix review comments

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

* fix review comments

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

* fix review comments

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

* fix review comments

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

* fix review comments

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

* fix review comments

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

* fix review comments

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

* fix review comments

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

* Update homeassistant/components/tibber/sensor.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* fix review comments

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

* migrate to new device ids

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

* Update homeassistant/components/tibber/sensor.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Update homeassistant/components/tibber/sensor.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Migrate entity id

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

* Migrate entity id

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

* Update homeassistant/components/tibber/sensor.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Update homeassistant/components/tibber/sensor.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Update homeassistant/components/tibber/sensor.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* move registers out of looå

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

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-05-12 20:07:44 +02:00
Erik Montnemery
783b453bbe
Migrate integrations t-v to extend SensorEntity (#48216) 2021-03-22 19:47:44 +01:00
Erik Montnemery
1fc8e32d86
Update integrations t-z to override extra_state_attributes() (#47760) 2021-03-11 20:16:26 +01:00
Daniel Hjelseth Høyer
094844f834
Tibber, fix spreading requests (#45533)
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
2021-01-25 17:48:42 +01:00
Daniel Hjelseth Høyer
4146a90313
Tibber, change time for fetching prices (#41840) 2020-10-15 08:08:57 +02:00