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
damarco
1518a80069
Bump zigpy ( #21203 )
...
* Bump zigpy
* Update requirements
* Update test requirements
* Bump zigpy-deconz
2019-02-20 16:34:59 +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
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
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
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
damarco
b557157ea1
Add support for deconz radios to zha component ( #20167 )
...
* Add support for deconz radios
* Update check_zigpy_connection()
2019-01-16 16:09:09 -08: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
012e91f9b1
version bump for zha-quirks ( #20019 )
2019-01-12 15:21:30 +01: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
David F. Mulcahey
acdf9c7ce2
Relay events for onoff and levelcontrol output clusters in ZHA ( #19863 )
...
* auto relay events for onoff and levelcontrol output clusters
* fix docstring
* correct copy/paste failure - review comment
* add space - review comment
2019-01-08 17:20:50 +01:00
David F. Mulcahey
ef180c489a
check config instead of config_entry for quirks flag ( #19730 )
2019-01-04 14:00:26 -05:00
David F. Mulcahey
bef85ecd2e
Remove global from ZHA application controller ( #19557 )
...
* remove global from application controller per request
* remove unneeded line
* don't store controller application in hass.data - review comment
2018-12-25 09:20:09 +01:00
David F. Mulcahey
031ee71adf
Add ZHA device handler library ( #19099 )
...
* event foundation
* implement quirks
* lock zha-quirks version
* allow quirks handling to be toggled on and off
* revert event commit
* disable warning
* update requirements_all
* Remove fix in favor of #19141
#19141 should be what ultimately corrects this issue.
* review comment
2018-12-12 17:06:22 +01:00
David F. Mulcahey
f4f42176bd
ZHA - Event foundation ( #19095 )
...
* event foundation
* add missing periods to comments
* reworked so that entities don't fire events
* lint
* review comments
2018-12-10 10:59:50 -05:00
Alexei Chetroi
3e1ab1b23a
Sort import order of zha component. ( #18993 )
2018-12-04 11:38:57 +01:00
damarco
1ae58ce48b
Add support for zha device registry ( #18755 )
2018-12-01 10:31:49 +01:00
damarco
052d305243
Add config entry for ZHA ( #18352 )
...
* Add support for zha config entries
* Add support for zha config entries
* Fix node_config retrieval
* Dynamically load discovered entities
* Restore device config support
* Refactor loading of entities
* Remove device registry support
* Send discovery_info directly
* Clean up discovery_info in hass.data
* Update tests
* Clean up rebase
* Simplify config flow
* Address comments
* Fix config path and zigpy check timeout
* Remove device entities when unloading config entry
2018-11-27 21:21:25 +01:00
David F. Mulcahey
67aa76d295
Refactor ZHA ( #18629 )
...
* refactor ZHA
* lint
* review request
* Exclude more zha modules from coverage
2018-11-22 19:00:46 +01:00
Hedda
ad3d7c9523
Update zha __init__.py to reflect new Zigbee name stylization by the Zigbee Alliance ( #17751 )
...
Zigbee Alliance has changed their stylized writing (and logo) of the Zigbee name from “ZigBee” to “Zigbee”, as in they are no longer writing Zigbee with a capital “B” in the middle of the name.
2018-10-24 14:12:30 +02:00
damarco
5167658a1d
Add support for zha custom cluster mappings ( #16714 )
...
* Add support for custom cluster mappings
* Refactor sub_component mapping
2018-10-09 12:53:02 +02:00
cdce8p
7f0a50ce31
async_create_task ( #17059 )
...
* async_create_task
* Update google.py
2018-10-02 11:03:09 +02:00
damarco
1c251009fe
Add zha device entity ( #14579 )
...
* Add endpoint entity
* Fix lint error
* Add nwk address as device state attribute
* Change to ZhaDeviceEntity
* Show last_seen only if offline
* Remove obsolete _discover_endpoint_info()
2018-09-17 10:42:21 +02:00
Alexei Chetroi
44fdfdf695
Log raw result of configure_reporting() command. ( #16655 )
2018-09-17 07:45:44 +02:00
Alexei Chetroi
7a52bbdf24
Allow only_cache parameter in zha.safe_read() ( #16553 )
...
* Allow only_cache parameter in zha.safe_read()
* Use cache_only for binary_sensor.zha initial update.
* Use cache_only for fan.zha initial update.
* Use cache_only for sensor.zha initial update.
* Use cache_only for switch.zha initial update.
* Use cache_only for light.zha initial update.
* Refactor cached only read in zha platform.
2018-09-13 09:22:50 +02:00
Alexei Chetroi
f2203e52ef
Add configure_reporting() method to zha component ( #16487 )
...
* Add zha.configure_reporting() method.
Binds a cluster and configures reporting for the specified attribute.
* git add homeassistant/components/binary_sensor/zha.py
* Refactor sensor.zha to use new 'configure_reporting() method.
* Zha configure reporting - switch (#1 )
* use configure_reporting for zha switch
* lint fixes
* Rename variables/classes to properly reflect the content
2018-09-13 09:11:47 +02:00
Alexei Chetroi
117ea9e553
Refactor zha/async_device_initialized(). ( #16485 )
...
Leverage endpoint.model and endpoint.manufacturer properties
2018-09-12 11:39:23 +02:00
Russell Cloran
ba63a6abc0
zha: Bump to zigpy 0.2.0/bellows 0.7.0 ( #16404 )
2018-09-03 22:46:27 -07:00
Ville Skyttä
dd9d53c83e
Update pydocstyle to 2.1.1 and flake8-docstrings to 1.3.0 ( #14557 )
...
* Update pydocstyle to 2.1.1 and flake8-docstrings to 1.3.0
* Pydocstyle D401 fixes
2018-08-24 10:28:43 +02:00
Russell Cloran
9791c6b21b
zha: Bump to zigpy-xbee 0.1.1 ( #14566 )
2018-05-20 21:57:09 -07:00
Russell Cloran
2f74ffcf81
zha: Fix cluster class check in single-cluster device type ( #14303 )
...
zigpy now allows custom devices, which might mean that devices have cluster
objects which are not instances of the default, but may be instances of
sub-classes of the default. This fixes the check for finding single-cluster
device entities to handle sub-classes properly.
2018-05-14 16:50:09 +02:00
damarco
01ce43ec7c
Use None as initial state in zha component ( #14389 )
...
* Return None if state is unknown
* Use None as initial state
2018-05-12 14:41:44 +02:00
damarco
6e831138b4
Fix binary_sensor async_update ( #14376 )
2018-05-10 10:59:23 -07:00
Russell Cloran
63cc179ea2
zha: Bump to zigpy 0.1.0 ( #14305 )
2018-05-06 11:17:05 +02:00
Russell Cloran
9d4d1c8233
zha: Clean up binary_sensor listener registration/state updates ( #14197 )
...
- Instead of registering listeners in the entity __init__, do it in
async_added_to_hass to avoid errors updating an entity which isn't fully
set up yet
- Change from schedule_update_ha_state to async_schedule_update_ha_state
2018-05-01 08:55:25 -04:00
Russell Cloran
02a12a0bb4
zha: Support remotes/buttons ( #12528 )
2018-04-29 23:31:27 -07:00
Russell Cloran
2707d35a86
Update bellows to 0.5.2 ( #13800 )
2018-04-10 00:12:22 -07:00
Per Osbäck
f9e07e617c
update to async/await ( #13137 )
2018-03-12 13:57:13 -07:00
Anders Melchiorsen
e2e10b91a7
Grammar fix 'an unique' ( #12870 )
2018-03-03 19:23:55 +01:00
Paulus Schoutsen
dc8c331c68
Update ZHA deps ( #12737 )
2018-02-27 00:05:29 -08:00
Russell Cloran
17b57099ae
zha: Simplify unique ID ( #12495 )
...
Also fixes entity IDs generated for devices on the same endpoint.
2018-02-18 15:02:34 -08:00
Paulus Schoutsen
3fd61d8f45
Update voluputous ( #12463 )
...
* Update voluputous
* Fix http config
* Fix optional with default=None
* Optional, default=none
* Fix defaults in voluptuous schemas
* Fix tests
* Fix update error
* Lint
2018-02-17 10:29:14 +01:00
Russell Cloran
ad8fe8a93a
zha: Add unique_id to entities ( #12331 )
...
* zha: Add unique_id to entities
* Lint
* fix comments
* Update __init__.py
* Update __init__.py
2018-02-15 13:38:56 +01:00
Russell Cloran
3b3050434a
zha: Add remove service ( #11683 )
...
* zha: Add remove service
* Lint
2018-02-11 20:34:19 -08:00
Russell Cloran
28ed304c93
zha: Update zigpy-xbee to 0.0.2
...
0.0.2 implements auto_form, so that configuring the radio to be a
controller is done automatically.
2018-02-11 14:45:52 -08:00
Russell Cloran
c7dad113d9
zha: Add support for XBee radios ( #12205 )
...
* zha: Add support for xbee radios
* Lint
2018-02-06 10:46:28 -08:00
Russell Cloran
f58e5f442d
zha: Update to bellows 0.5.0+zigpy ( #12187 )
2018-02-05 16:05:19 -08:00
Russell Cloran
ff32f90a29
Fix zha color probe ( #11670 )
2018-01-15 14:25:59 -08:00