Commit graph

55 commits

Author SHA1 Message Date
Jan Bouwhuis
6701a449bd
Use shorthand attrs for tasmota () 2023-09-14 18:17:23 +02:00
Erik Montnemery
5bcb4f07a0
Bump hatasmota to 0.7.3 () 2023-09-12 09:58:05 +02:00
Erik Montnemery
80b03b4acb
Adjust tasmota sensor device class and icon mapping () 2023-09-12 08:59:39 +02:00
DerEnderKeks
9fecdddf01
Don't use force_update for Tasmota sensors ()
* fix: don't use force_update for Tasmota sensors

* Update binary_sensor.py

* Update test_binary_sensor.py

* Update test_sensor.py

---------

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-03-28 17:14:52 +02:00
Erik Montnemery
cc564026fa
Move EntityCategory to homeassistant.const ()
* Move EntityCategory to homeassistant.const

* Fix more imports
2023-02-09 20:15:37 +01:00
Franck Nijhof
3d557b5583
Collection of code styling tweaks () 2023-02-04 12:52:26 -05:00
Erik Montnemery
280f6e4752
Bump hatasmota to 0.6.2 () 2023-01-05 12:24:38 +02:00
epenet
f4fb4bc91c
Use unit enums in tasmota () 2022-12-21 10:02:35 +01:00
epenet
79d3d4ceae
Use UnitOfTemperature in integrations (t-z) () 2022-12-20 18:50:39 +01:00
epenet
f988a1164d
Use UnitOfPressure in integrations () 2022-12-19 21:41:46 +01:00
epenet
418be1eeb6
Use UnitOfElectricCurrent in integrations () 2022-12-19 16:59:39 +01:00
epenet
ebdf9a8658
Use UnitOfEnergy in integrations (o-z) () 2022-12-19 10:58:37 +01:00
epenet
0184aadb09
Use UnitOfElectricPotential in integrations () 2022-12-15 13:59:21 +01:00
epenet
d72c28a135
Use UnitOfLength in integrations () 2022-12-15 12:42:53 +01:00
epenet
ae9506d0bb
Use UnitOfMass in integrations () 2022-12-14 16:37:11 +01:00
epenet
946d5535b4
Use UnitOfFrequency in integrations () 2022-12-13 11:47:06 +01:00
epenet
52d4a358a0
Use UnitOfPower in integrations [s-z] () 2022-12-12 12:20:16 +01:00
epenet
248d5ff541
Use ApparentPower unit and device class in integrations () 2022-12-08 20:55:18 +01:00
Franck Nijhof
9864d9e0d2
Remove str from sensor device class () 2022-12-08 19:04:58 +01:00
epenet
884f8d6e2c
Adjust device classes in tasmota ()
* Adjust device classes in tasmota

* Remove incorrect device class
2022-10-20 15:58:22 +02:00
epenet
19b85851a1
Use _attr_force_update in tasmota () 2022-09-06 20:20:07 +02:00
ollo69
3327493ab7
Add state class total increasing to Tasmota energy today sensor ()
Add  total increasing to tasmota energy today sensor
2022-09-06 11:24:08 +02:00
Erik Montnemery
3bddd6cf96
Correct device class for tasmota apparent and reactive power sensors () 2022-08-29 19:30:48 -04:00
Theo Arends
31e3f4892e
Bump hatasmota to 0.4.1 ()
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-04-27 19:05:42 +02:00
Dave T
8fd60dbd51
Refactor entity_category str types () 2021-12-27 18:23:08 +01:00
epenet
3724a4fb2f
Use new enums in tasmota ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-20 21:00:53 +01:00
Erik Montnemery
d143aa06e3
Correct device class for Tasmota dewpoint sensor () 2021-12-10 09:12:24 +01:00
Erik Montnemery
8e58ea8397
Correct state class for Tasmota sensors ()
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2021-12-09 10:49:19 +01:00
Franck Nijhof
3adb9e4143
Use native datetime value in Tasmota sensors () 2021-11-18 20:03:04 +01:00
Erik Montnemery
2bae113748
Mark Tasmota status sensors as diagnostic sensors ()
* Mark Tasmota status sensors as diagnostic sensors

* Disable IP and firmware version sensors by default
2021-10-18 19:33:26 -07:00
Erik Montnemery
bca9360d52
Remove last_reset attribute from tasmota energy sensors () 2021-08-18 09:25:33 -07:00
Erik Montnemery
94a264afaf
Move temperature conversions to entity base class (7/8) () 2021-08-11 18:57:50 +02:00
Marc Mueller
074d762664
Rename and reorganize electric unit constants () 2021-07-20 20:06:23 +02:00
Erik Montnemery
2e44e256f0
Improve typing of Tasmota (3/3) () 2021-07-12 19:17:44 +02:00
Erik Montnemery
8c812bc25c
Improve typing of Tasmota (2/3) ()
* Improve typing of Tasmota (2/3)

* Add more typing, add TasmotaOnOffEntity

* Address review comments
2021-07-12 18:27:11 +02:00
Erik Montnemery
16e90f12ca
Add last_reset property to Tasmota energy sensors ()
* Add last_reset property to Tasmota energy sensors

* Correct device class for energy sensors
2021-05-26 17:58:06 +02:00
Erik Montnemery
b169a8dbda
Mark battery, humidity and pressure sensors as STATE_CLASS_MEASUREMENT ()
* Mark battery, humidity and pressure sensors as STATE_CLASS_MEASUREMENT

* Fix deconz battery sensor
2021-05-24 11:36:42 +02:00
Erik Montnemery
73d7a754e8
Mark temperature sensors as STATE_CLASS_MEASUREMENT ()
* Mark temperature sensors as STATE_CLASS_MEASUREMENT

* Fix broadlink tests

* Tweak Hue changes
2021-05-21 11:44:34 +02:00
Shay Levy
38f0c201c2
Fix Tasmota Wifi Signal Strength unit () 2021-04-15 19:53:03 +02:00
Erik Montnemery
783b453bbe
Migrate integrations t-v to extend SensorEntity () 2021-03-22 19:47:44 +01:00
Marc Mueller
b67b9b94f9
Update typing 13 () 2021-03-18 14:43:52 +01:00
Mick Vleeshouwer
461e766a93
Add device class CO2 to various integrations ()
* Add device class CO2 to Fibaro

* Add device class CO2 to Awair

* Add device class CO2 to Tasmota

* Add device class CO2 to Netatmo

* Add device class CO2 to Ambient Station

* Update Tasmota tests

* Remove icon
2021-03-10 12:52:55 +01:00
Rene Lehfeld
2272925699
Add force_update to tasmota sensors ()
* Add force update also to non-binary sensors as e.g. POWER Measurement agerage cannot be calculated otherwise. This is the same behavior as set with the obsolete tasmota detection

* add tests in binary_sensor and test_sensor for force_update flag

* satisfy flake8

* next try for force_update test but this time on the entity object which is the correct level

* once again satisfy flake8

* one more try for a test

* fix typo

* satisfy black
2021-03-02 18:57:14 +01:00
Erik Montnemery
974e099e2a
Small cleanup of Tasmota () 2020-11-26 22:34:26 +01:00
Erik Montnemery
8cc7069323
Bump hatasmota to 0.0.29 () 2020-11-11 13:51:09 +01:00
Erik Montnemery
51b4bc547c
Bump hatasmota from 0.0.27 ()
* Adjust tests

* Add test for deprecated discovery message

* Update status sensors

* Bump hatasmota to 0.0.27

* Update tests
2020-11-08 17:11:25 +01:00
Erik Montnemery
73eaef0b1c
Make sure Tasmota status sensors are disabled () 2020-10-30 19:04:11 +01:00
Erik Montnemery
6e9b0b4614
Bump hatasmota to 0.0.26 () 2020-10-30 19:02:26 +01:00
Erik Montnemery
251d8286e0
Revert "Bump hatasmota to 0.0.26 ()" ()
This reverts commit 2dc5c4dd69.
2020-10-30 18:02:44 +01:00
Federico Leoni
2dc5c4dd69
Bump hatasmota to 0.0.26 ()
* Tasmota : Add new Status Sensors

* Tasmota: add new Status Sensors

* Update RSSI sensor icon

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2020-10-30 14:59:36 +01:00