Robert Svensson
c2f026d0a7
Minor deCONZ clean up ( #76323 )
...
* 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 ( #76015 )
...
* 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 ( #74481 )
2022-07-09 23:35:06 +02:00
Robert Svensson
76146cf57c
Fix deCONZ does not generate unique IDs for battery sensors ( #72455 )
2022-05-24 20:51:02 -07:00
Robert Svensson
e60b247b51
Simplify setup of deCONZ platforms ( #72453 )
2022-05-24 20:48:09 -07:00
Robert Svensson
cc7a0e3c24
Streamline setup of deCONZ sensor platform ( #71905 )
2022-05-23 15:41:56 +02:00
Jelte Zeilstra
d52137cc1a
Add state class measurement to deCONZ LightLevel sensors ( #71516 )
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 ( #71189 )
2022-05-02 10:51:19 +03:00
Robert Svensson
301dcaae63
Move deCONZ sensor imports to reflect changes in pydeconz ( #70471 )
2022-04-23 22:59:51 +03:00
Robert Svensson
678888c65f
deCONZ dependency exports type hints ( #70449 )
2022-04-22 19:27:47 -10:00
Robert Svensson
b6cf65decb
Improve typing of deCONZ sensor platform ( #70161 )
2022-04-17 20:58:42 +03:00
Robert Svensson
d6d7f3cb3c
Bump pydeconz to v88 ( #69369 )
2022-04-05 13:44:04 -07:00
Robert Svensson
bff91b170f
Complete typing of some platforms of deCONZ integration ( #67494 )
2022-03-14 19:34:05 +01:00
Robert Svensson
1bc936ca8d
Improve Deconz sensors ( #65259 )
2022-02-15 08:32:56 +01:00
Robert Svensson
deed5f327c
Add low battery binary sensor to deCONZ integration ( #64168 )
...
* 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 ( #64164 )
...
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2022-01-17 20:25:55 +01:00
epenet
fa38a2d0bf
Use new enums in deconz ( #61343 )
...
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 ( #59604 )
2021-11-17 15:11:51 +01:00
Robert Svensson
3ad3f4e2ba
Simplify signalling for updating available property of deCONZ entities ( #58078 )
2021-10-20 14:59:36 +02:00
Robert Svensson
edefa9f4f4
Assign entity category diagnostics to deCONZ battery sensors ( #58077 )
2021-10-20 09:11:17 +02:00
Robert Svensson
750dd9186e
Improve deCONZ signal strings ( #57140 )
2021-10-07 12:48:27 +02:00
Robert Svensson
59b1433e5c
Additional place to use isinstance rather than do a string compare ( #57094 )
2021-10-05 09:17:45 +02:00
Robert Svensson
1c1bb057d7
CLIPGenericFlag should be deCONZ sensor not binary sensor ( #56901 )
2021-10-01 17:10:01 +02:00
Robert Svensson
369412547a
Use native unit of measurement in deCONZ sensors ( #56897 )
2021-10-01 16:50:09 +02:00
Robert Svensson
f224ab6d67
Use isinstance to verify class in deCONZ integration ( #56794 )
...
* Don't enable any variants of the daylight sensor entities by default
* Use isinstance rather than doing ZHATYPE compare
* Accidentally removed an import
2021-09-29 21:19:21 +02:00
Robert Svensson
8db0bd3c0e
Fix state_class for deCONZ power sensors ( #56586 )
...
* Fix state_class for power sensors
Rewrite entity descriptions for binary sensor and sensor platforms
* Remove icon if device_class is specified
2021-09-25 20:54:55 +02:00
Robert Svensson
539ef31046
Reflect changes to pydeconz v84 ( #56361 )
...
Mostly snake case conversions and typing
But also a change in retry mechanism
Added a more complete set_* call to most types to remove the direct relation to rest API of deCONZ
2021-09-18 09:05:08 +02:00
Franck Nijhof
4c5d5a8f5a
Update deCONZ to use new state classes ( #54729 )
2021-08-17 08:34:41 +02:00
Erik Montnemery
41f3c2766c
Move temperature conversions to entity base class (2/8) ( #54468 )
2021-08-11 18:57:12 +02:00
Robert Svensson
edf0e0bd08
Add energy device class to deCONZ consumption sensors ( #53731 )
2021-07-29 16:16:08 -07:00
Robert Svensson
6352d8fb0e
Use more attr instead of properties in deCONZ integration ( #52098 )
2021-06-23 21:40:34 +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
Robert Svensson
58ad3b61f7
Entities for secondary temperature values created by certain Xiaomi devices in deCONZ ( #49724 )
...
* Create sensors for secondary temperature values created by certain Xiaomi devices
* Fix tests
2021-04-27 08:43:06 +02:00
Robert Svensson
3b64c574e3
Replace local listener implementation to using config_entry.on_unload in deCONZ ( #49494 )
2021-04-20 08:20:57 -10:00
Robert Svensson
34245c3add
Add alarm control panel support to deCONZ integration ( #48736 )
...
* Infrastructure in place
* Base implementation
* Add alarm event
* Add custom services to alarm control panel
* Add service descriptions
* Increase test coverage
* Simplified to one entity service with an options selector
* Remove everything but the essentials
* Add library with proper support
* Fix stale comments
2021-04-20 17:34:11 +02:00
Robert Svensson
c80f34a754
Add support for ZHADoorLock locks to deCONZ integration( #48516 )
2021-03-31 09:36:06 +02:00
Erik Montnemery
9e9ba53f0e
Move SensorEntity last in the inheritance tree ( #48230 )
2021-03-22 20:05:13 +01:00
Erik Montnemery
23b562386f
Migrate integrations d-e to extend SensorEntity ( #48211 )
2021-03-22 12:52:29 +01:00
Erik Montnemery
6c084ae6ce
Update integrations a-e to override extra_state_attributes() ( #47756 )
2021-03-11 16:51:03 +01:00
Robert Svensson
6b0c569a70
Normally there should only be one battery sensor per device from deCONZ. ( #46761 )
...
With these Danfoss devices each endpoint can report its own battery state.
2021-02-25 09:54:46 +01:00
Robert Svensson
ac2c01d20c
deCONZ improve options updating entities ( #42320 )
2020-12-02 16:21:27 +01:00
Robert Svensson
8c0b39eb9c
No update before adding entity in deCONZ ( #41948 )
2020-10-16 17:14:26 +02:00
Robert Svensson
552856203b
Clean deCONZ tests to depend less on integration code ( #41015 )
2020-10-02 11:20:33 +02:00
Robert Svensson
c2ed743237
Improve deCONZ platforms ( #40986 )
...
* Use platform domain imports with the list of supported platforms
* Remove legacy async_setup_platform from platforms
2020-10-01 19:06:20 +02:00
Robert Svensson
082f866620
Improve deCONZ state updates ( #40601 )
2020-09-30 17:24:30 +02:00
Robert Svensson
66a8edb11e
deCONZ fix comments from #40265 ( #40640 )
...
* Use set not list
* Events are not entities
* Don't await unload_events
* Remove checks of entities content in tests
* List to set comprehension
* Why is it so hard to remember that sets arent parenthesis...
2020-09-27 11:02:45 +02:00
Robert Svensson
203c556ba3
Improve tracking of existing entities in deconz ( #40265 )
...
* Store all entities in dict
* Use stored unique id to select if to create entity or not
* Remove unnecessary init
* Change so same physical sensor doesnt try to create multiple battery sensors
Change so groups get created properly
* Add controls in tests that entities are logged correctly
2020-09-25 22:49:28 +02:00
springstan
6c8e0e20fb
Add and use light lux constant in entire code base ( #40171 )
2020-09-23 20:48:01 +02:00
Robert Svensson
fb7fb0ea78
deCONZ - move event handling ( #40424 )
...
* Working draft
* Remove event references in sensor
2020-09-22 19:55:10 +02:00