Paulus Schoutsen
e9e44dbd97
Fix callback and async ( #31281 )
...
* Fix callback and async
* Fix a return
* Fix test
* Fix mqtt tests
* Fix some more callbacks
2020-01-29 13:59:45 -08:00
David F. Mulcahey
f4a4c6bea5
ZHA group and device cleanup ( #31260 )
...
* add dispatching of groups to light
* added ha device registry device id
* added zha group object
* add group event listener
* add and remove group members
* get group by name
* api cleanup
* clean up get device info
* create and remove zigpy groups
* clean up create and remove group api
* use device id
* use device id
* cleanup
* update test
* update tests to allow group events to flow
2020-01-29 12:24:43 -05:00
David F. Mulcahey
7d9c8fdfa0
update remove service ( #31164 )
2020-01-27 08:54:31 -05:00
David F. Mulcahey
3c44a1353a
change group id creation ( #31075 )
2020-01-22 09:23:35 -05:00
David F. Mulcahey
41014d73be
Allow ZHA device creation for the Zigbee coordinator ( #31032 )
...
* allow zha device creation for coordinator
* don't let coordinator get removed
* fix truthy issue in logical device type
2020-01-21 06:07:47 -05:00
David F. Mulcahey
6c89b6c5a2
Add Zigbee group binding to ZHA ( #30433 )
...
* initial group binding work
* add group cluster binding
2020-01-04 16:58:51 -05:00
Ville Skyttä
fa4fa30461
Various string cleanups ( #30435 )
...
* Remove some unnecessary string concatenations
* Replace some simple str.formats with f-strings
* Replace some string concatenations with f-strings
2020-01-03 14:47:06 +01:00
David F. Mulcahey
85d2ba047b
Protect against bad data stored in ZHA ( #30183 )
2019-12-23 19:11:35 -05:00
Alexei Chetroi
7685c76b9b
Defer log formatting. ( #29888 )
2019-12-12 14:16:02 -05:00
Alexei Chetroi
327b5c3c94
Log ZHA bind/unbind operations status ( #29842 )
...
* Log bind/unbind operation result.
* Use ZDO consts.
* Use device logger for bind/unbind results.
* Lint.
2019-12-12 12:16:51 -05:00
Alexei Chetroi
315d0064fe
Fix zha circular import ( #29802 )
...
* Refactor zha.core.helpers.
* Make zha isort-able.
* Const import reorg.
* Keep DATA_ZHA config key on entry unload.
* Cleanup ZHA config flow.
* isort.
* Add test.
2019-12-10 00:00:04 -05:00
David F. Mulcahey
1222aa8c56
Add ZHA group API ( #29641 )
...
* add skeleton to retrieve zigbee groups
* get single group
* add a group
* return group members with group
* add comment
* fix group members
* add function to add device to group
* add group members
* add remove from group method
* add api to remove members from group
* add remove groups method
* clean up group add and remove
* fix remove group
* fix remove groups
* add api to get only groupable devices
* change var init
* add tests
* address review comment
2019-12-09 14:50:04 -05:00
Alexei Chetroi
4ba2bd232c
Command arguments for issue_zigbee_cluster_commands. ( #28885 )
2019-11-20 08:34:06 -05:00
Abílio Costa
e60ae77f1b
Add ZHA service to issue group commands ( #28823 )
...
* add service to ZHA to issue group commands
* fix args
2019-11-19 19:49:09 -05:00
Alexei Chetroi
fe7c45b363
Move remaining of ZHA imports to top level. ( #28071 )
...
* Move ZHA import to top level.
* ZHA tests: move imports to top level.
2019-10-21 19:30:56 -04:00
Alexei Chetroi
a0c50f4794
Leverage zigpy for IEEE address conversions ( #27972 )
...
* Refactor EUI64 conversions.
* Update ZHA dependencies.
* Update tests.
2019-10-21 13:14:17 -04:00
David F. Mulcahey
62adff23f9
ZHA siren and warning device support ( #26046 )
...
* add ias warning device support
* use channel only clusters for warning devices
* squawk service
* add warning device warning service
* update services.yaml
* remove debugging statement
* update required attr access
* fix constant
* add error logging to IASWD services
2019-09-20 15:11:24 -04:00
Franck Nijhof
dae6895a95
Use literal string interpolation in integrations X-Z (f-strings) ( #26395 )
2019-09-03 21:15:31 +02:00
David F. Mulcahey
6f2ac705eb
Add web socket API command to get a single ZHA device ( #26196 )
...
* get single device web socket command
* test get single device
* add not found error
* fix handling when device doesn't exist
* add test for zha device not found
2019-08-26 09:54:19 -04:00
Alexei Chetroi
0c561aec4f
isort ZHA imports. ( #25660 )
2019-08-02 10:37:21 -04:00
Alexei Chetroi
77e4ff94fd
ZHA code cleanup. ( #25644 )
...
* isort ZHA imports.
* Sort zha channel registry.
* Sort ZHA core registry.
* Sort ZHA core consts.
2019-08-02 06:05:23 -04:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
David F. Mulcahey
7f90a1cab2
go back to signals and no hard entity references ( #24894 )
2019-07-01 16:32:57 -04:00
David F. Mulcahey
7d651e2b7a
Fix traceback during ZHA device removal ( #24882 )
...
* fix device remove lifecycle
* clean up remove signal
* add guard
2019-06-30 21:12:27 -04:00
David F. Mulcahey
5e363d124e
fix bindable devices ( #23216 )
2019-04-18 20:21:30 -04:00
Tobias Sauerwein
048b100eea
Clean up docstrings ( #22679 )
...
* Clean up docstrings
* Fix long lines
* Fix more docstrings
* Fix more docstrings
* Fix more docstrings
2019-04-03 17:40:03 +02:00
Alexei Chetroi
e670491c86
Targeted ZHA permit joins. ( #22482 )
...
* Targeted ZHA permit service.
* Convert IEEE string to EUI64 usiv vol schema.
* Update test units.
* Lint.
isort imports.
2019-03-27 19:50:52 -07:00
David F. Mulcahey
3cca3c37f0
zha fixes ( #22381 )
2019-03-26 09:17:43 -04:00
David F. Mulcahey
46ece3603f
Add dynamic subscription for ZHA add device page ( #22164 )
...
* add ws subscription for zha gateway messages
* add debug mode
* only relay certain logs
* add missing require admin
* add devices command
* add area_id
* fix manufacturer code
2019-03-18 22:35:03 -04:00
David F. Mulcahey
300384410f
Refactor ZHA gateway into modules and add admin protections to API ( #22023 )
...
* refactor
* cleanup
* fix tests
* admin all the things
2019-03-14 10:20:25 -04:00
David F. Mulcahey
cd6c923123
fix exception ( #21571 )
2019-03-01 20:15:36 -05:00
David F. Mulcahey
b39846fb6b
add friendly name to devices in the device registry ( #21499 )
...
switch to name_by_user
review comments
add device reg info to zha device api
2019-03-01 08:11:24 -05:00
David F. Mulcahey
901b2b4ba3
new websocket api way ( #21533 )
2019-02-28 19:32:41 -05:00
David F. Mulcahey
82bdd9568d
Add direct binding for remotes and lights for ZHA ( #21498 )
...
* cluster matching and binding apis
implement binding
callback
fix loop
fix loops
* review comments
* use any because it is clearer
2019-02-28 10:04:35 -08:00
David F. Mulcahey
a34524febe
Clean up ZHA post rewrite ( #21448 )
...
* update async handling to reduce unnecessary coroutine creation
* lint
* cleanup
2019-02-26 10:48:10 -08:00
David F. Mulcahey
80442e655d
Update ZHA API to be device oriented ( #20990 )
...
* update cluster API
* swap to device focused API
* update test
2019-02-12 15:05:02 -05:00
David F. Mulcahey
868820c424
add device info API ( #20950 )
2019-02-11 14:38:04 -05:00
David F. Mulcahey
e6cd04d711
ZHA component rewrite ( #20434 )
...
* rebase reorg
* update coveragerc for now
* sensor cleanup
* remove availability tracking for entities
* finish removing changes from tests
* review comments pass 1
* use asyncio.gather - review comments
* review comments
* cleanup - review comments
* review comments
* review comments
* cleanup
* cleanup - review comments
* review comments
* review comments
* use signal for removal
* correct comment
* remove entities from gateway
* remove dead module
* remove accidently committed file
* use named tuple - review comments
* squash bugs
* squash bugs
* add light and sensor back to coveragerc until % is higher
2019-02-06 13:33:21 -05:00
David F. Mulcahey
a0b93c2add
ZHA component rewrite part 1 ( #20456 )
...
* rearrange files
* add init to module
* update imports
* update coveragerc
* put blank line back... git raw view be damned
2019-01-26 08:54:49 -05:00
David F. Mulcahey
8748ace244
Make imports relative in ZHA component ( #20020 )
...
* make imports relative
* remove cyclic import
2019-01-16 11:06:22 -08:00
David F. Mulcahey
7be015fcc6
Add services and helper functions to support a config panel for ZHA ( #19664 )
...
* reconfigure zha device service
add log line to reconfigure service for consistency
* add entity functions to support new services
* added new services and web socket api and split them into their own module
* support manufacturer code
logging to debug
get safe value for manufacturer
* update services.yaml
* add comma back
* update coveragerc
* remove blank line
* fix type
* api cleanup - review comments
* move static method to helpers - review comment
* convert reconfigure service to websocket command - review comment
* change path
* fix attribute
2019-01-11 11:34:29 -08:00