Alexei Chetroi
625c8e0cee
Shutdown ZHAGateway on hass closing. ( #22646 )
...
* Shutdown ZHAGateway on hass stop.
* Cleanup ZHA event leftovers.
2019-04-03 09:40:48 -04:00
David F. Mulcahey
6401920019
clean up channel configuration ( #22534 )
2019-03-29 16:41:04 -04: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
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
89c96279ce
Cleanup remaining constants stuff in ZHA ( #22050 )
...
* clean up constants
* fix quirks until it can be upgradded
2019-03-14 21:00:49 -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
5ffb471198
Update ZHA state handling ( #21866 )
...
* make device available if it was seen within 2 hours
* more state restore
* cleanup init
* clean up storage stuff
* fix tests
* update state handling
2019-03-09 20:09:09 -08:00
roblandry
e10e27d809
Add SmartThingsAccelCluster to ZHA binary_sensor ( #21609 )
...
* Add SmartThingsAccelCluster to binary_sensor
* Make corrections per discussion with @dmulcahey
* Add missing const to gateway.py
* Remove Acceleration from no sensor
2019-03-04 15:56:05 -08:00
David F. Mulcahey
fc07d3a159
Add storage helper to ZHA and use it for the device node descriptor ( #21500 )
...
* node descriptor implementation
add info to device info
disable pylint rule
check for success
* review comments
* send manufacturer code for get attr value for mfg clusters
* ST report configs
* do zdo task first
* add guard
* use faster reporting config
* disable false positive pylint
2019-03-03 21:22:42 -08:00
David F. Mulcahey
45316f6ed6
ZHA fixes ( #21592 )
...
* do not report on 0x1000 LightLink cluster
* don't flood Zigbee network during configuration or initialization
* add lifeline of 60 minutes to lights
* use ootb polling
2019-03-02 14:09:01 -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
0f8575f939
Fix ZHA bugs ( #21246 )
...
* fix bugs
* add comment
* allow entities to be marked unavailable
2019-02-21 14:20:58 +01:00
David F. Mulcahey
cece6454e4
Fix bug in ZHA and tweak non sensor channel logic ( #21234 )
...
* fix race condition and prevent profiles from stealing channels
* fix battery voltage
2019-02-20 16:33:29 +01:00
David F. Mulcahey
5b24b271cc
Don't dispatch to components when there are no channels for ZHA sensors ( #21223 )
...
* don't dispatch when channels don't exist
* review comment
2019-02-20 16:27:03 +01:00
David F. Mulcahey
3be8178035
Refactor ZHA listeners into channels ( #21196 )
...
* refactor listeners to channels
* update coveragerc
2019-02-19 09:58:22 -08:00
David F. Mulcahey
3f9e6a7064
Add power source to device and clean up zha listeners ( #21174 )
...
check available and add comments
ensure order on API test
2019-02-18 16:55:41 +01:00
David F. Mulcahey
3a6a246746
Set ZHA device availability on new join ( #21066 )
...
* set availability on device join
* fix new join test
2019-02-15 13:14:58 -05:00
David F. Mulcahey
d692251e62
Run tasks when ZHA devices become available ( #20998 )
...
* use tasks for message interception
* update available handling
* review comments and cleaned up check
* review comments
2019-02-13 08:52:29 -05:00
David F. Mulcahey
561ff33641
Update entity state when ZHA device becomes available ( #20993 )
...
* correctly update device entity state
* update state when device becomes available
* constants
* review comments
2019-02-12 20:37:39 -05:00
David F. Mulcahey
d4c34c6b02
Cleanup zha listener lifecycle ( #20789 )
2019-02-07 09:23:01 +01: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
05d41bc0ee
introduce gateway ( #20460 )
2019-01-26 13:28:13 -05:00