Commit Graph
52 Commits
Author SHA1 Message Date
DerEnderKeksandErik Montnemery 9fecdddf01 Don't use force_update for Tasmota sensors (#85943)
* 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 (#87792)
* Move EntityCategory to homeassistant.const

* Fix more imports
2023-02-09 20:15:37 +01:00
Franck Nijhof 3d557b5583 Collection of code styling tweaks (#87381) 2023-02-04 12:52:26 -05:00
Erik Montnemery 280f6e4752 Bump hatasmota to 0.6.2 (#85182) 2023-01-05 12:24:38 +02:00
epenet f4fb4bc91c Use unit enums in tasmota (#84342) 2022-12-21 10:02:35 +01:00
epenet 79d3d4ceae Use UnitOfTemperature in integrations (t-z) (#84309) 2022-12-20 18:50:39 +01:00
epenet f988a1164d Use UnitOfPressure in integrations (#84230) 2022-12-19 21:41:46 +01:00
epenet 418be1eeb6 Use UnitOfElectricCurrent in integrations (#84231) 2022-12-19 16:59:39 +01:00
epenet ebdf9a8658 Use UnitOfEnergy in integrations (o-z) (#84221) 2022-12-19 10:58:37 +01:00
epenet 0184aadb09 Use UnitOfElectricPotential in integrations (#84044) 2022-12-15 13:59:21 +01:00
epenet d72c28a135 Use UnitOfLength in integrations (#84034) 2022-12-15 12:42:53 +01:00
epenet ae9506d0bb Use UnitOfMass in integrations (#83930) 2022-12-14 16:37:11 +01:00
epenet 946d5535b4 Use UnitOfFrequency in integrations (#83915) 2022-12-13 11:47:06 +01:00
epenet 52d4a358a0 Use UnitOfPower in integrations [s-z] (#83826) 2022-12-12 12:20:16 +01:00
epenet 248d5ff541 Use ApparentPower unit and device class in integrations (#83577) 2022-12-08 20:55:18 +01:00
Franck Nijhof 9864d9e0d2 Remove str from sensor device class (#83391) 2022-12-08 19:04:58 +01:00
epenet 884f8d6e2c Adjust device classes in tasmota (#79282)
* 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 (#77900) 2022-09-06 20:20:07 +02:00
ollo69 3327493ab7 Add state class total increasing to Tasmota energy today sensor (#77140)
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 (#77519) 2022-08-29 19:30:48 -04:00
Theo ArendsandErik Montnemery 31e3f4892e Bump hatasmota to 0.4.1 (#70799)
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-04-27 19:05:42 +02:00
Dave T 8fd60dbd51 Refactor entity_category str types (#62790) 2021-12-27 18:23:08 +01:00
epenetandepenet 3724a4fb2f Use new enums in tasmota (#62427)
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 (#61420) 2021-12-10 09:12:24 +01:00
Erik Montnemeryandepenet 8e58ea8397 Correct state class for Tasmota sensors (#61236)
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 (#59915) 2021-11-18 20:03:04 +01:00
Erik Montnemery 2bae113748 Mark Tasmota status sensors as diagnostic sensors (#57958)
* 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 (#54836) 2021-08-18 09:25:33 -07:00
Erik Montnemery 94a264afaf Move temperature conversions to entity base class (7/8) (#54482) 2021-08-11 18:57:50 +02:00
Marc Mueller 074d762664 Rename and reorganize electric unit constants (#53243) 2021-07-20 20:06:23 +02:00
Erik Montnemery 2e44e256f0 Improve typing of Tasmota (3/3) (#52748) 2021-07-12 19:17:44 +02:00
Erik Montnemery 8c812bc25c Improve typing of Tasmota (2/3) (#52747)
* 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 (#51107)
* 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 (#50924)
* 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 (#50889)
* 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 (#49263) 2021-04-15 19:53:03 +02:00
Erik Montnemery 783b453bbe Migrate integrations t-v to extend SensorEntity (#48216) 2021-03-22 19:47:44 +01:00
Marc Mueller b67b9b94f9 Update typing 13 (#48077) 2021-03-18 14:43:52 +01:00
Mick Vleeshouwer 461e766a93 Add device class CO2 to various integrations (#47676)
* 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 (#47052)
* 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 (#43642) 2020-11-26 22:34:26 +01:00
Erik Montnemery 8cc7069323 Bump hatasmota to 0.0.29 (#43013) 2020-11-11 13:51:09 +01:00
Erik Montnemery 51b4bc547c Bump hatasmota from 0.0.27 (#42802)
* 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 (#42643) 2020-10-30 19:04:11 +01:00
Erik Montnemery 6e9b0b4614 Bump hatasmota to 0.0.26 (#42644) 2020-10-30 19:02:26 +01:00
Erik Montnemery 251d8286e0 Revert "Bump hatasmota to 0.0.26 (#42613)" (#42641)
This reverts commit 2dc5c4dd69.
2020-10-30 18:02:44 +01:00
Federico LeoniandErik Montnemery 2dc5c4dd69 Bump hatasmota to 0.0.26 (#42613)
* 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
Erik Montnemery de35d58fd4 Support reloading Tasmota config entries (#42097) 2020-10-23 01:22:51 +02:00
Erik Montnemery ec7f329807 Add support for Tasmota status sensor (#41782)
* Add sensor attributes, remove useless test.

* Fix tests

* Rework handling of sensor attributes

* Remove unused sensor attributes

* Hide status sensors

* Bump hatasmota to 0.0.19

* Use DEVICE_CLASS_SIGNAL_STRENGTH for WiFi signal sensor

* Improve test coverage

* Fix tests
2020-10-19 22:07:31 +02:00
Philip Allgaier dde6305549 Cleanup unused loggers (components N-Z + tests) (#41982) 2020-10-16 21:24:08 -05:00