Commit Graph

34 Commits (944f2c9745888426f03a3b1fdb0a1f5e69da983b)

Author SHA1 Message Date
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 6f091d235f
Fix late comment correcting kwargs should always be Any in deCONZ covers ()
* Fix late comments correcting kwargs should always be Any
2021-11-19 21:16:21 +01:00
Robert Svensson 29e0ef604e
Add typing to deCONZ Climate and Cover platforms () 2021-11-17 15:08:37 +01:00
Robert Svensson 750dd9186e
Improve deCONZ signal strings () 2021-10-07 12:48:27 +02:00
Robert Svensson f224ab6d67
Use isinstance to verify class in deCONZ integration ()
* 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 539ef31046
Reflect changes to pydeconz v84 ()
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
Robert Svensson 6352d8fb0e
Use more attr instead of properties in deCONZ integration () 2021-06-23 21:40:34 +02:00
Robert Svensson 3b64c574e3
Replace local listener implementation to using config_entry.on_unload in deCONZ () 2021-04-20 08:20:57 -10:00
Robert Svensson da309ce342
Change device class of window covers to shade () 2021-02-27 14:09:25 -06:00
Robert Svensson ac2c01d20c
deCONZ improve options updating entities () 2020-12-02 16:21:27 +01:00
Robert Svensson 6fa3e287da
Add support to control cooling in deCONZ climate platform ()
* Add fan support

* Add HVAC cool support

* Fix Martins comment from 

* Add preset support

* Improve climate test coverage

* Remove fan support

* Remove preset support

* Remove last preset piece
2020-11-28 13:11:13 +01:00
Robert Svensson acb94b0b59
Add tilt support to deCONZ covers () 2020-11-24 21:42:11 +01:00
Robert Svensson 7214d6517a
Fix conversion of cover position between HASS and deCONZ () 2020-11-24 14:47:56 +01:00
Robert Svensson 55cbd5aa0d
Track deCONZ lib changes to light based devices ()
* Improve control of covers

* Log backtrace if available

* Do not create entity for controller tool
Binary sensor should use state rather than is_tripped
Add some more tests to lights and sensors

* Bump dependency to v74

* Fix Balloobs comments
2020-11-23 11:37:11 +01:00
Robert Svensson 8c0b39eb9c
No update before adding entity in deCONZ () 2020-10-16 17:14:26 +02:00
Robert Svensson 552856203b
Clean deCONZ tests to depend less on integration code () 2020-10-02 11:20:33 +02:00
Robert Svensson c2ed743237
Improve deCONZ platforms ()
* 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 203c556ba3
Improve tracking of existing entities in deconz ()
* 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 f93c0c5cd3
Use DEVICE_CLASS_WINDOW constant in various integrations () 2020-09-11 21:24:23 -05:00
Erik Montnemery 8c5c963b96
Rename CoverDevice to CoverEntity () 2020-04-25 18:07:15 +02:00
Knapoc 7ec7306ea8
Update deconz/cover.py to adapt rest-api changes ()
* Update cover.py to adapt rest-api changes

* adjust test to reflect max brightness changes

* implement test for rest-api cover position of 255
2020-03-16 15:44:59 +01:00
springstan 89c7629215 Move imports to top for deconz () 2019-12-04 21:17:18 -08:00
Robert Svensson 8a39924b37
deCONZ improve light tests ()
* Improve light tests
* Small improvements on light and group classes
2019-09-18 12:47:26 +02:00
Robert Svensson 518d2c31bb deCONZ - use entity registry disabled_by to control available entities ()
* First draft

* Support enabling disabled entities

* Clean up

* Move import

* Local entity enabled replaced during rebase

* Add option flow test

* Mark options properties with option
2019-09-05 16:38:00 -07:00
Robert Svensson 1f2e0d3949
deCONZ normalizes cover values to follow zigbee spec () 2019-08-27 21:06:14 +02:00
Paulus Schoutsen 4de97abc3a Black 2019-07-31 12:25:30 -07:00
Robert Svensson 31b2f331db
Library refactorization of deCONZ ()
* Improved sensors

* Lib update signalling

* Replace reason with changed

* Move imports to top of file

* Add support for secondary temperature reported by some Xiaomi devices

* Bump dependency to v59
2019-05-27 06:56:00 +02:00
Robert Svensson 6e34015420
deCONZ - Retry on BridgeBusy errors () 2019-05-03 17:55:42 +02:00
cgtobi 2c07bfb9e0 Remove dependencies and requirements ()
* Remove dependencies and requirements

* Revert "Remove dependencies and requirements"

This reverts commit fe7171b4cd.

* Remove dependencies and requirements

* Revert "Remove dependencies and requirements"

This reverts commit 391355ee2c.

* Remove dependencies and requirements

* Fix flake8 complaints

* Fix more flake8 complaints

* Revert non-component removals
2019-04-12 10:13:30 -07:00
Robert Svensson b50afec5f1 Support multiple deCONZ gateways ()
* Store gateways inside a dict in deconz domain

* Make reachable events gateway specific

* Gateway shall always exist

* Adapt new device signalling to support multiple gateways

* Services follow gateway master

* Working on unload entry

* Make unload and master handover work
Improve tests for init

* Fix config flow

* Fix linting

* Clean up init tests

* Clean up hassio discovery to fit with the rest

* Store gateways inside a dict in deconz domain

* Make reachable events gateway specific

* Gateway shall always exist

* Adapt new device signalling to support multiple gateways

* Services follow gateway master

* Working on unload entry

* Make unload and master handover work
Improve tests for init

* Fix config flow

* Fix linting

* Clean up init tests

* Clean up hassio discovery to fit with the rest

* Add support for services to specify bridgeid
2019-04-04 17:48:24 -07:00
Robert Svensson 9ce8f4737d
deCONZ thermostat support ()
* Add support for thermostats in deCONZ by adding Climate platform
2019-02-18 17:43:22 +01:00
Fabian Affolter 127c55e0c1
Update file header ()
* Update file header

* Update file header

* Update file header

* Update file header

* Update file header

* Fix lint issues
2019-02-13 21:21:14 +01:00
Robert Svensson 19e19009cc Make all deCONZ platforms use a common base ()
* Make all deconz platforms use a common base

* Fix one cover to device replacement too much...
2019-01-16 08:33:04 +01:00
Robert Svensson a3f0d55737
Change deCONZ to embedded platforms ()
Move all platforms into components/deconz
2019-01-15 19:29:56 +01:00