Alexei Chetroi
89213a4ce8
Don't set entity_id in ZHA entities ( #28362 )
...
* Don't set entity_id on ZHA entities.
* Update tests.
* Use comma as separator for multiple channel names.
* Address PR comments.
2019-10-31 12:31:06 -04:00
Alexei Chetroi
059d2572a2
Fixes/zha ieee tail ( #28160 )
...
* Fix ZHA entity_id assignment.
* Update tests.
2019-10-24 13:53:16 -07:00
Alexei Chetroi
969322e14a
Fixes/zha ieee tail ( #28160 )
...
* Fix ZHA entity_id assignment.
* Update tests.
2019-10-24 12:23:02 -04: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
Alexei Chetroi
e011a94ce9
Bump up ZHA dependencies. ( #27127 )
2019-10-02 15:51:52 -07:00
Alexei Chetroi
9c0fbfd101
Bump up ZHA dependencies ( #26746 )
...
* Update ZHA to track zigpy changes.
* Update ZHA dependencies.
* Update tests.
* Make coverage happy again.
2019-09-23 13:35:27 -04:00
Alexei Chetroi
3544f3d7e0
Bump ZHA dependencies. ( #26504 )
2019-09-07 21:14:32 -05:00
Alexei Chetroi
21a946009d
Bump up zha dependencies. ( #26097 )
2019-08-20 16:06:38 -07:00
Alexei Chetroi
61b687edec
Bump ZHA dependencies. ( #25898 )
2019-08-12 18:34:16 -04:00
Alexei Chetroi
c3c45f8198
Manufacturer specific channel for SmartThings. ( #25739 )
...
* Manufacturer specific channel for SmartThings.
* Lint.
2019-08-06 20:59:18 -04:00
Alexei Chetroi
152a9eb466
Use more decorators for ZHA Core registries. ( #25737 )
...
* Move ZIGBEE_CHANNEL_REGISTRY to ZHA core registries.
* Refactor more ZHA Core registries to use decorator.
* Cleanup.
* Use relative imports for component.
* Flake8.
* Make pylint happy again.
2019-08-06 20:01:14 -04:00
Alexei Chetroi
8dbac9176e
Refactor ZHA Zigbee channel registry. ( #25716 )
...
* Update test to catch regression.
* Refactor ZHA Core channels.
Use channel decorator for Zigbee channel registry.
* Update tests.
* Pylint
2019-08-05 15:40:29 -06:00
Alexei Chetroi
f7cfe908f7
Refactor ZHA Zigbee Cluster report configuration ( #25589 )
...
* Move ZCL report configs to ZHA core channels.
* Refactor ZCL report configuratopm and cluster binding.
* Tests for ZHA channel configuration.
* Update tests.
* Remove INPUT_BIND_ONLY_CLUSTER ZHA core registry.
We always need bind a cluster, but not always need to configure
attribute reporting. No reporting is done on ZCL "client" clusters.
* Lint
* Black
2019-08-04 18:20:03 -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
Alexei Chetroi
5aa35b52cc
ZHA log helper ( #25543 )
...
* Logging helper.
* Use log helper for ZHA entities.
* Use log helper for ZHA core device.
* Log helper for ZHA core channels.
* Lint
* ZHA fixture fix.
2019-07-30 15:19:24 -04:00
Alexei Chetroi
c886d00bab
Bump up ZHA dependencies. ( #25450 )
2019-07-23 20:51:40 -04:00
Alexei Chetroi
c7dfec702d
Fix climate is_aux_heat type hint. ( #25170 )
2019-07-16 14:59:37 -07:00
Alexei Chetroi
e8fd01bea5
Fix climate is_aux_heat type hint. ( #25170 )
2019-07-16 09:32:09 +02:00
Alexei Chetroi
cea857e18a
Bump up ZHA dependencies. ( #25062 )
...
Bump zigpy-homeassistant to 0.7.0
Bump zigpy-deconz to 0.2.1
Bump zigpy-xbee-homeassistant to 0.4.0
2019-07-10 12:20:37 -07:00
Alexei Chetroi
6ae1228e61
Enhancement/zha model manuf ( #24771 )
...
* Cleanup ZHA entities model and manufacturer usage.
Zigpy includes manufacturer and model as attributes of a zigpy
Device class, which simplifies handling of manufacturer and/or model
derived properties for the ZHA platform.
* Sort ZHA imports.
* Lint.
2019-06-26 09:31:19 -04:00
Alexei Chetroi
82cad58b8d
Update ZHA dependencies. ( #24736 )
2019-06-24 15:00:09 -07:00
Alexei Chetroi
26dea0f247
Update ZHA dependencies. ( #24736 )
2019-06-24 16:57:07 -04:00
Alexei Chetroi
d5edbb424a
Bump ZHA dependencies. ( #24637 )
2019-06-21 09:27:38 -07:00
Alexei Chetroi
86e50530b0
Bump ZHA dependencies. ( #24637 )
2019-06-19 22:32:31 -04:00
Alexei Chetroi
0ba2b4e253
ZHA requirements version bump. ( #24228 )
...
* ZHA requirements version bump.
* zha-quirks version bump.
2019-05-31 17:15:27 -04:00
Alexei Chetroi
9fb8144031
Debug log when polling ZHA light. ( #24167 )
2019-05-28 19:50:48 -07:00
Alexei Chetroi
93ad7b2e45
Do not add coordinator to the ZHA entities. ( #23803 )
2019-05-14 07:19:28 +02:00
Alexei Chetroi
910825580e
Do not add coordinator to the ZHA entities. ( #23803 )
2019-05-10 18:57:08 -04:00
Alexei Chetroi
8328ea6bd7
Bump ZHA modules versions. ( #23705 )
...
* Bump ZHA modules versions.
Bump bellows-homeassistant version.
Bump zigpy-homeassistant version.
Bump zigpy-xbee-homeassistant version.
* Update requirements_*.txt
2019-05-05 17:15:34 -04:00
Alexei Chetroi
930f75220c
Await merge_packages_config(). ( #23109 )
2019-04-14 19:02:49 -07:00
Alexei Chetroi
479511ee42
Bugfix ZHA device_removed() handler. ( #23074 )
2019-04-13 12:57:22 -04:00
Alexei Chetroi
64ea13104e
Fix ZHA Light color conversion. ( #22909 )
2019-04-09 05:48:17 -04:00
Alexei Chetroi
a69b1a359d
ZHA Light debug logging. ( #22776 )
2019-04-05 17:06:59 -07:00
Alexei Chetroi
8dfbfae270
ZHA Light debug logging. ( #22776 )
2019-04-05 19:06:41 -04:00
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
Alexei Chetroi
0427154963
Don't force updates on ZHA Electrical Measurement sensor. ( #22647 )
2019-04-02 08:28:55 -07: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
Alexei Chetroi
6540114ec5
Update ZHA component CODEOWNERS ( #22452 )
2019-03-27 07:17:10 -04:00
Alexei Chetroi
a84ba90c9e
Fix ZHA force polled entities. ( #22222 )
...
## Description:
Fix "force_polled" ZHA entities.
## Checklist:
- [x] The code change is tested and works locally.
- [x] Local tests pass with `tox`. **Your PR cannot be merged unless tests pass**
- [x] There is no commented out code in this PR.
[ex-requir]: https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/keyboard/__init__.py#L14
[ex-import]: https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/keyboard/__init__.py#L23
2019-03-21 13:02:35 -07:00
Alexei Chetroi
03855c18fc
add ZHA channel name property ( #22218 )
...
* Make channel name a property.
* Cleanup Zigbee channels.
Use zcl.Cluster.ep_attribute as default channel name.
2019-03-21 07:40:12 -07:00
Alexei Chetroi
9653544144
Fix ZHA force polled entities. ( #22222 )
...
## Description:
Fix "force_polled" ZHA entities.
## Checklist:
- [x] The code change is tested and works locally.
- [x] Local tests pass with `tox`. **Your PR cannot be merged unless tests pass**
- [x] There is no commented out code in this PR.
[ex-requir]: https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/keyboard/__init__.py#L14
[ex-import]: https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/keyboard/__init__.py#L23
2019-03-20 19:15:21 -07:00
Alexei Chetroi
9575c20b7c
Minor ZHA consts fixes ( #22049 )
...
* Use consts for zha.core.consts
* Fix ZHA battery reporting config.
2019-03-14 20:29:12 -04:00
Alexei Chetroi
9066609d23
Refactor async_turn_on() for ZHA Light. ( #21156 )
...
* Refactor async_turn_on() for ZHA Light.
Use "move_to_level_with_on_off" if brightness or transition attributes
are present in the service call data, otherwise issue "On" Zigbee
command.
Allow brightness of 0 for service call -- effectively turning the light
off.
Send color commands only after the light was turned on.
* Fix zha.light tests.
2019-02-27 08:34:38 -05:00
Alexei Chetroi
4b3d4b275e
Zha light.turn_on service fixes. ( #20085 )
...
Set color only if light supports color mode.
Set color temp only light supports color temp.
Update entity's brightness only if Zigbee command to set the brightness
was sent successfuly.
2019-01-15 16:12:22 -08:00
Alexei Chetroi
5ab3c7b765
Don't set friendly_name in Zha entity. ( #19991 )
...
Use @property name instead of setting friendly_name device state attr.
2019-01-11 21:41:27 -05:00
Alexei Chetroi
ded37d971d
Don't map LevelControl to light for single cluster devices. ( #19929 )
2019-01-11 11:58:41 -08:00
Alexei Chetroi
d859c3fa86
Don't map LevelControl to light for single cluster devices. ( #19929 )
2019-01-10 14:43:24 -05:00
Alexei Chetroi
3453d31f01
Use manufacturer id only for configure_reporting only when specified. ( #19729 )
2019-01-08 20:23:44 -08:00
Alexei Chetroi
ed8f89df74
Use manufacturer id only for configure_reporting only when specified. ( #19729 )
2019-01-04 16:05:37 -05:00
Alexei Chetroi
e096532cf1
Use async_configure for ZHA IAS binary sensor ( #19629 )
...
* Update Zha IAS binary sensor to use async_configure().
* Make less debug logging noise.
2018-12-29 16:13:52 -08:00
Alexei Chetroi
4a1da0b041
Configure ZHA entity on new ZHA device join ( #19470 )
...
* Address PR#19177 comments.
* Make 'new_join' part of ZhaEntity.
Call async_configure() automatically when new device ZHA device joins.
2018-12-23 20:47:06 +01:00
Alexei Chetroi
5a4e6bbb07
Support ZHA light turn_off transition ( #19531 )
2018-12-23 12:15:54 +01:00
Alexei Chetroi
01fc322488
Make ZHA entities non-polled by default ( #19536 )
2018-12-23 11:11:24 +01:00
Alexei Chetroi
54c57fe5db
Restore state for zha binary_sensors on restart. ( #19314 )
...
Poll zha devices for current status, if not available restore state.
2018-12-22 09:34:47 +01:00
Alexei Chetroi
4692605974
ZHA entity ZCL reporting configuration ( #19177 )
...
* Implement async_configure() method for ZHA entities.
Allow attribute reporting configuration to be stored as dict of zha
entity.
* Update ZHA platform to use new attribute reporting configuration.
* Use const declaration instead of magic numbers.
* Add support for manufacturer_id in ZCL attribute reporting configuration.
* Refactor async_configure() method.
Rename attribute reporting dict to zcl_reporting_config.
2018-12-19 14:52:20 +01:00
Alexei Chetroi
3e1ab1b23a
Sort import order of zha component. ( #18993 )
2018-12-04 11:38:57 +01:00
Alexei Chetroi
9fdf123a2f
Zha switch schedule update state ( #16621 )
...
* switch.zha: Schedule state update.
if turning switch On or Off operation was successful, then schedule
state update
* switch.zha: Update debug logging.
2018-09-21 12:11:23 +02:00
Alexei Chetroi
3ea8c25e1f
light.zha: Catch exceptions for all commands. ( #16752 )
...
Catch exceptions for all operations which may fail because of device
reachibility
More verbose debug logging on operations
2018-09-20 20:23:09 +02:00
Alexei Chetroi
44fdfdf695
Log raw result of configure_reporting() command. ( #16655 )
2018-09-17 07:45:44 +02:00
Alexei Chetroi
0d0bda9658
Switch components.sensor.zha to await syntax. ( #16619 )
2018-09-14 13:29:10 -06: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
501f2b0a93
Update fan.zha platform. ( #16551 )
...
* Update fan.zha platform.
switch from asyncio to async def()
catch DeliveryError exceptions
keep previous state, if reading 'fan_mode' attribute fails
* fan.zha: Use None for unknown state.
if we fail to read 'fan_mode' attribute, use None for state
2018-09-12 12:43:06 +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
Alexei Chetroi
87d55834be
zha: handle "step_with_on_off" cluster command in LevelListener. ( #14756 )
2018-06-07 16:56:07 -04:00
Alexei Chetroi
eff1d1f14e
zha: fix temperature rounding for ZHA temperature sensors. ( #14669 )
2018-05-29 09:05:07 -04:00
Alexei Chetroi
144bb3492a
zha/light: Properly parse currentX and currentY on async_update() ( #14605 )
2018-05-28 10:32:47 -04:00