1
0
mirror of https://github.com/home-assistant/core.git synced 2025-08-26 13:50:02 +00:00
Commit Graph

106 Commits

Author SHA1 Message Date
Robert Svensson
5abf77662a Support carbon dioxide and formaldehyde sensors in deCONZ ()
* Add formaldehyde sensor
* Add carbon dioxide sensor
* Bump pydeconz to v116
2024-05-22 07:33:55 +02:00
Robert Svensson
506240be10 Streamline naming in deCONZ integration () 2024-03-18 22:08:06 +01:00
Robert Svensson
e90388afd1 Remove old update of sensor unique id in deCONZ () 2024-03-15 21:06:09 +02:00
Robert Svensson
ffcbab1c20 Split out deCONZ hub ()
* Rename DeconzGateway to DeconzHub

* Move gateway.py to hub/hub.py
2024-03-10 08:25:12 +01:00
Erik Montnemery
0c2485bc03 Freeze integration entity descriptions ()
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-12-18 16:28:13 -10:00
Robert Svensson
b41b56e54c Support new deCONZ Particulate Matter endpoint () 2023-11-24 11:39:13 +01:00
Franck Nijhof
2c003d8c10 Remove Deconz entity descriptions required fields mixins () 2023-11-16 16:05:29 +01:00
Tobias G
d4e352d6a7 Add humidity sensor to deconz component ()
Co-authored-by: Robert Svensson <Kane610@users.noreply.github.com>
2023-06-01 19:16:42 +02:00
ad0p
ef24e508f8 Bump pydeconz to v112 ()
* Bump pydeconz to v112

* PR review - add suggested_display_precision

* Test - fix

* Bump pydeconz to v112

* PR review - add suggested_display_precision

* Fix tests

---------

Co-authored-by: Robert Svensson <Kane610@users.noreply.github.com>
2023-05-24 14:43:02 +02:00
Markus
1a14a93df6 HA deconz: Add support for Tuya Smart Air Housekeeper 6in1 Air Quality Monitor ()
* fix check for airquality sensor (was always TRUE)

* import additional const required

* add support for formaldehyd sensor

* add support for co2 sensor

* add support for pm25 sensor

* sort const a-z

* adapt to typo fixed function

* adapt to new key names (formaldehyde)

* adapt co2 sensor to new key names

* Update homeassistant/components/deconz/sensor.py

remove unnecessary code

Co-authored-by: Robert Svensson <Kane610@users.noreply.github.com>

* add device_class for air_quality_ppb

* add test_air_quality_sensor_6_in_1

* fix Air quality PPB test to match device_class

* remove device_class of air_quality_ppb

* remove device_class test of airqualityppb

* explicit units

* remove device_class test of airquality_1_ppb

* dependency bump pydeconz to 111

* Update homeassistant/components/deconz/sensor.py

remove unnecessary device_class

Co-authored-by: Robert Svensson <Kane610@users.noreply.github.com>

* import formatting

* formatting

* Update homeassistant/components/deconz/sensor.py

change key for pm2_5

Co-authored-by: Robert Svensson <Kane610@users.noreply.github.com>

* add airquality co2 ch2o pm25 sensor testdata

* remove test_air_quality_sensor_6_in_1

* formatting

* bump pydeconz for requirements

---------

Co-authored-by: Robert Svensson <Kane610@users.noreply.github.com>
2023-04-23 16:12: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
5e81d28116 Update black to 23.1.0 () 2023-02-02 18:35:24 +01:00
epenet
67f8d82818 Remove invalid state class in deconz () 2023-01-10 17:28:35 +01:00
Franck Nijhof
5c794234e7 Fix incorrect voc device class usage in Deconz sensors () 2022-12-21 22:44:13 +01:00
epenet
d89ba40010 Use UnitOfTemperature in integrations (a-d) () 2022-12-20 17:59:20 +01:00
epenet
f988a1164d Use UnitOfPressure in integrations () 2022-12-19 21:41:46 +01:00
epenet
0dd20fb309 Use UnitOfEnergy in integrations (a-n) () 2022-12-19 11:06:00 +01:00
epenet
4fe025b297 Use UnitOfPower in integrations [a-g] () 2022-12-12 11:48:09 +01:00
Robert Svensson
e1a0f8314e Fix deCONZ Air Quality PPB device class and unit of measurement ()
Fix Air Quality PPB device class and unit of measurement
2022-11-26 10:56:09 +01:00
Aarni Koskela
6021cedb09 deconz: Use partition instead of split where possible ()
* deconz: Use partition instead of split where possible

With a smattering of code deduplication

Split out of 

* Update homeassistant/components/deconz/util.py

Co-authored-by: Robert Svensson <Kane610@users.noreply.github.com>

Co-authored-by: Robert Svensson <Kane610@users.noreply.github.com>
2022-11-08 20:54:01 +01:00
Robert Svensson
3a33d36466 Fix situation where deCONZ sensor platform setup would fail ()
* Fix situation where deCONZ sensor platform setup would fail

* Don't use try
2022-11-05 21:23:36 +01:00
Robert Svensson
2ce837f588 Resolve late comments to deCONZ sensor ()
Resolve late comments to deCONZ sensor 
2022-09-30 21:49:59 +02:00
Robert Svensson
a0357767ef Fix late comments to deCONZ sensors from ()
* Fix late comments from 

* Fix comment
2022-09-29 09:33:31 +02:00
Robert Svensson
473d7c484d Improve deCONZ sensor classes () 2022-09-28 21:45:15 -04:00
Robert Svensson
61ff52c93a Normalize deCONZ sensor unique IDs ()
* Normalize deCONZ sensor unique IDs

* Handle battery sensors properly

* Fix daylight sensor unique ID
2022-08-31 08:12:25 +02:00
Robert Svensson
0154a1cecb Improve deCONZ binary sensor classes () 2022-08-29 08:15:10 +02:00
Robert Svensson
c2f026d0a7 Minor deCONZ clean up ()
* Rename secondary_temperature with internal_temperature

* Prefix binary and sensor descriptions matching on all sensor devices with COMMON_

* Always create entities in the same order

Its been reported previously that if the integration is removed and setup again that entity IDs can change if not sorted in the numerical order

* Rename alarmsystems to alarm_systems

* Use websocket enums

* Don't use legacy pydeconz constants

* Bump pydeconz to v103

* unsub -> unsubscribe
2022-08-06 01:34:27 +02:00
epenet
deff0ad61e Implement generic in Deconz base device ()
* Make DevonzBase a generic

* Adjust alarm_control_panel

* Adjust binary_sensor

* Adjust climate

* More platforms

* Adjust light

* Ignore type-var

* Add space

* Implement recommendation

* Use type: ignore[union-attr]

* Revert "Use type: ignore[union-attr]"

This reverts commit 983443062a.

* Adjust assert

* Adjust lock

* Rename type variables

* type: ignore[union-attr]

* Formatting

Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2022-08-01 19:18:29 +02:00
Robert Svensson
e3242d8d16 Move add/remove logic of deCONZ clip sensors to gateway class () 2022-07-09 23:35:06 +02:00
Robert Svensson
76146cf57c Fix deCONZ does not generate unique IDs for battery sensors () 2022-05-24 20:51:02 -07:00
Robert Svensson
e60b247b51 Simplify setup of deCONZ platforms () 2022-05-24 20:48:09 -07:00
Robert Svensson
cc7a0e3c24 Streamline setup of deCONZ sensor platform () 2022-05-23 15:41:56 +02:00
Jelte Zeilstra
d52137cc1a Add state class measurement to deCONZ LightLevel sensors () 2022-05-08 15:54:43 +02:00
Robert Svensson
37b59dfcc0 Make sure sensor state value is not None prior to trying to used the scaled value () 2022-05-02 10:51:19 +03:00
Robert Svensson
301dcaae63 Move deCONZ sensor imports to reflect changes in pydeconz () 2022-04-23 22:59:51 +03:00
Robert Svensson
678888c65f deCONZ dependency exports type hints () 2022-04-22 19:27:47 -10:00
Robert Svensson
b6cf65decb Improve typing of deCONZ sensor platform () 2022-04-17 20:58:42 +03:00
Robert Svensson
d6d7f3cb3c Bump pydeconz to v88 () 2022-04-05 13:44:04 -07:00
Robert Svensson
bff91b170f Complete typing of some platforms of deCONZ integration () 2022-03-14 19:34:05 +01:00
Robert Svensson
1bc936ca8d Improve Deconz sensors () 2022-02-15 08:32:56 +01:00
Robert Svensson
deed5f327c Add low battery binary sensor to deCONZ integration ()
* Make tamper sensor a property sensor

* Add low battery binary sensor as a binary property sensor

* Change according to review comment

* Use value_fn lambda

* Fix comparison

* Specific entity_description typing

* Minimize the code block affected by catching AttributeError

* Update homeassistant/components/deconz/binary_sensor.py

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

* Update homeassistant/components/deconz/binary_sensor.py

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

* Avoid try statement

* Reflect review changes in sensor platform as well

* Store known sensor entities once per device

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2022-01-17 22:35:20 +01:00
Robert Svensson
7e40707288 Add Air Quality PPB sensor to deCONZ integration ()
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2022-01-17 20:25:55 +01:00
epenet
fa38a2d0bf Use new enums in deconz ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-09 13:23:01 +01:00
Robert Svensson
0339761e72 Add typing to deCONZ Number and Sensor platforms () 2021-11-17 15:11:51 +01:00
Robert Svensson
3ad3f4e2ba Simplify signalling for updating available property of deCONZ entities () 2021-10-20 14:59:36 +02:00
Robert Svensson
edefa9f4f4 Assign entity category diagnostics to deCONZ battery sensors () 2021-10-20 09:11:17 +02:00
Robert Svensson
750dd9186e Improve deCONZ signal strings () 2021-10-07 12:48:27 +02:00
Robert Svensson
59b1433e5c Additional place to use isinstance rather than do a string compare () 2021-10-05 09:17:45 +02:00
Robert Svensson
1c1bb057d7 CLIPGenericFlag should be deCONZ sensor not binary sensor () 2021-10-01 17:10:01 +02:00
Robert Svensson
369412547a Use native unit of measurement in deCONZ sensors () 2021-10-01 16:50:09 +02:00