Commit graph

38 commits

Author SHA1 Message Date
Robert Svensson
1c1bb057d7
CLIPGenericFlag should be deCONZ sensor not binary sensor () 2021-10-01 17:10:01 +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
8db0bd3c0e
Fix state_class for deCONZ power sensors ()
* 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 ()
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
Franck Nijhof
258b388f41
Collection of changing entity properties to class attributes ()
* Collection of changing entity properties to class attributes

* Apply suggestions from code review

Co-authored-by: Erik Montnemery <erik@montnemery.com>

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2021-05-31 10:50:11 +02:00
Robert Svensson
056f636568
Add tampering sensor to deCONZ integration () 2021-04-28 20:16:06 +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
Erik Montnemery
6c084ae6ce
Update integrations a-e to override extra_state_attributes() () 2021-03-11 16:51:03 +01:00
Robert Svensson
ac2c01d20c
deCONZ improve options updating entities () 2020-12-02 16:21:27 +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
082f866620
Improve deCONZ state updates () 2020-09-30 17:24:30 +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
Robert Svensson
37f7d262d7
Change deCONZ sensor device classes ()
* Change vibration type to vibration instead of motion

* Also replace icon and unit of measurement
2020-06-02 16:17:21 +02:00
Erik Montnemery
b022e08db9
Rename BinarySensorDevice to BinarySensorEntity ()
* Rename BinarySensorDevice to BinarySensorEntity

* Tweak

* Move deprecation warning to __new__, add test

* Move deprecation warning back to __init__

* Move deprecation warning to __init_subclass
2020-04-23 21:57:07 +02:00
Paulus Schoutsen
aaa1d06809
Directly call async_write_ha_state ()
* Directly call async_write_ha_state

* Address comments

* Fix tests
2020-04-01 14:19:51 -07:00
Robert Svensson
e695bb55c8
deCONZ - Race condition on slower systems ()
When battery sensors gets created before other platforms loading deconz sensors gets created first the other platform would not create entities related to those battery sensors
2020-02-27 20:48:01 +01:00
Robert Svensson
b5df2ba853
deCONZ - Directly reflect changes to config entry options ()
* Directly reflect changes to config entry options

* Remove print

* Add tests

* Add title to config options
2020-02-18 13:24:25 -08:00
Robert Svensson
fce9697591
deCONZ - Revert from using disabled_by when setting options ()
* Revert from using disabled_by when setting options

* Remove signalling for changed options

* Evaluate allow group option earlier when adding a group
2020-02-04 16:37:01 -08:00
Robert Svensson
36675fe4fa
deCONZ - New light level sensor attribute () 2020-01-29 07:40:42 +01:00
Robert Svensson
c9db21ffac Fix service device refresh calling state update () 2020-01-17 15:33:46 -08:00
Robert Svensson
0d48d682dc
deCONZ - Make sensors sorted on creation for deterministic order ()
* Make sensors sorted on creation for deterministic order

* Martins comment
2020-01-08 09:30:02 +01:00
springstan
89c7629215 Move imports to top for deconz () 2019-12-04 21:17:18 -08:00
Robert Svensson
557e585e56
deCONZ - Support creating battery sensor when reported () 2019-11-01 22:31:22 +01:00
Robert Svensson
41c9ed5d51
deCONZ - battery sensor instead of battery attribute ()
* Allow all sensors to create battery sensors
* Neither binary sensor, climate nor sensor will have battery attributes
2019-09-14 19:15:18 +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
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
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
79445a7ccc deCONZ support Xiaomi vibration sensor ()
* Martin pointed out in previous PR that no ending '.' in logging

* Add support for Xiaomi vibration sensor
2019-03-25 23:43:58 -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
Renamed from homeassistant/components/binary_sensor/deconz.py (Browse further)