HomeAssistant Azure
274cf23269
[ci skip] Translation update
2020-02-07 00:31:50 +00:00
Alexei Chetroi
0e68ace3dd
Bump ZHA dependencies. ( #31555 )
2020-02-06 16:34:28 -05:00
David F. Mulcahey
06c8e53323
bump quirks ( #31355 )
2020-01-31 13:55:06 -05:00
Christian Clauss
df7d2b3aeb
Fix typos found by codespell ( #31243 )
...
* Fix typos found by codespell
* Fix typos found by codespell
* codespell: Furture ==> Future
* Update test_config_flow.py
* Update __init__.py
* Spellcheck: successfull ==> successful
* Codespell: unsuccesful ==> unsuccessful
* Codespell: cant ==> can't
* Codespell: firware ==> firmware
* Codespell: mimick ==> mimic
2020-01-31 08:33:00 -08:00
Alexei Chetroi
24f4f53f16
ZHA dependencies bump ( #31295 )
...
* ZHA dependencies bump.
* Bump bellows-homeassistant.
2020-01-30 10:04:06 -05:00
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
Alexei Chetroi
37af2170ec
Mark device unavailable when it leaves Zigbee network. ( #31264 )
2020-01-28 21:21:33 -05:00
HomeAssistant Azure
2c02334c1f
[ci skip] Translation update
2020-01-29 00:31:54 +00:00
David F. Mulcahey
7d9c8fdfa0
update remove service ( #31164 )
2020-01-27 08:54:31 -05:00
Bill Durr
e16e192b3c
improvements to zha cover ( #31144 )
2020-01-25 13:20:59 -05:00
Alexei Chetroi
217e280f8b
Update ZHA remotes registry to proper identify "remotes ( #31146 )
...
* Update ZHA remote device types.
* Remove `binary_sensor` entity from affected devices.
* Update ZHA Profiles.
Prevent DeviceType.ON_OFF_LIGHT_SWITCH from creating entities.
* Update tests and remove unused entities.
2020-01-25 12:42:19 -05:00
David F. Mulcahey
3c44a1353a
change group id creation ( #31075 )
2020-01-22 09:23:35 -05:00
Franck Nijhof
fb35d382e1
Remove all empty *_setup_platform() from integrations ( #31025 )
...
* Remove all empty *_setup_platform() from integrations
* Fix tests for smartthings
* Fix tests for heos
2020-01-21 12:38:38 +01: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
Sébastien RAMAGE
1639432463
Bump zigpy-zigate to 0.5.1 ( #31004 )
...
* Bump zigpy-zigate to 0.5.1
Improve startup and channel setting
2020-01-20 13:09:20 -05:00
David F. Mulcahey
078ce24e5a
Add logical Zigbee device type to ZHA device info ( #30954 )
...
* add device type to device info
* capitalize
* use zigpy logical device type
2020-01-18 19:27:55 -05:00
Alexei Chetroi
26fb1ce255
Don't use unit_of_measurement in state attributes. ( #30941 )
2020-01-18 10:03:59 -05:00
Alexei Chetroi
3bf657284c
Refactor rounding for ZHA electrical measurement sensor ( #30923 )
2020-01-17 20:53:31 -05:00
Alexei Chetroi
58520aa733
Add battery voltage state attribute for ZHA devices ( #30901 )
...
* Add battery voltage state attribute for ZHA devices.
* Pylint.
2020-01-17 19:43:02 -05:00
David F. Mulcahey
31996120dd
add multistate back ( #30889 )
2020-01-17 13:06:10 -05:00
David F. Mulcahey
1b730b3055
Bump ZHA quirks to 0.0.31 ( #30740 )
...
* Bump ZHA quirks version
* update requirements
2020-01-13 13:10:22 -05:00
Bill Durr
4d6417295b
ZHA cover device support ( #30639 )
...
* ZHA cover device support
* flake8
* flake8, black
* isort
* pylint
* more test
* use zigpy provided functions
* black
* handle command errors, better state handling
* black
* more test
* lint
* Update ZHA cover tests coverage.
Co-authored-by: Alexei Chetroi <lexoid@gmail.com>
2020-01-11 22:42:14 -05:00
Alexei Chetroi
008dddb17c
Fix ZHA temperature sensor restoration ( #30661 )
...
* Add test for restoring state for zha temp.
* Don't restore unit of measurement for ZHA sensors.
Properly restore ZHA temperature sensor state.
2020-01-10 20:30:58 -05:00
Ville Skyttä
80cbc32c49
Spell Zigbee consistently, with lowercase "b" ( #30440 )
...
https://zigbeealliance.org/developer_resources/zigbee-specification/
"Please note that this uses old branding, Zigbee is always a lowercase
B, not a capital. This change occurred shortly after the official
release of this document."
Also other docs at https://zigbeealliance.org/solution_type/zigbee/ ,
https://github.com/zigpy/zigpy/issues/111
2020-01-06 08:32:10 -05:00
HomeAssistant Azure
d1ed67f44a
[ci skip] Translation update
2020-01-06 00:32:11 +00: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
ef8eefc7a0
Remove ZHA establish device mappings function ( #30423 )
...
* remove establish_device_mappings
* inline init
2020-01-02 21:21:09 -05:00
Alexei Chetroi
a3061bda60
Make the rest of ZHA platforms to use ZHA class registry ( #30261 )
...
* Refactor ZHA component tests fixtures.
* Add tests for ZHA device discovery.
* Refactor ZHA registry MatchRule.
Allow callables as a matching criteria.
Allow sets for model & manufacturer.
* Minor ZHA class registry refactoring.
Less cluttered strict_matching registrations.
* Add entities only if there are any.
* Migrate rest of ZHA platforms to ZHA registry.
* Pylint fixes.
2019-12-31 11:09:58 -05:00
HomeAssistant Azure
ae51331d49
[ci skip] Translation update
2019-12-31 00:32:20 +00:00
HomeAssistant Azure
13116d8d3f
[ci skip] Translation update
2019-12-30 00:32:19 +00:00
Alexei Chetroi
36585558a5
Refactor ZHA channel logging ( #30259 )
...
Add channel.id property -- id unique for this the device only.
2019-12-28 15:41:55 -05:00
David F. Mulcahey
05a0922dc0
Bump ZHA dependencies ( #30228 )
...
* bump dependencies
* requirement files
* bump quirks to 0.0.30
2019-12-26 17:08:14 -05:00
HomeAssistant Azure
bb35d93fde
[ci skip] Translation update
2019-12-25 00:32:06 +00:00
David F. Mulcahey
85d2ba047b
Protect against bad data stored in ZHA ( #30183 )
2019-12-23 19:11:35 -05:00
Alexei Chetroi
fdaaabf070
ZHA binary_sensor cleanup. ( #30149 )
2019-12-22 14:07:49 -05:00
Alexei Chetroi
83768be814
Refactor ZHA binary_sensor ( #30138 )
...
* Refactor ZHA binary_sensor.
Use ZHA entity class registry for channel specific implementations.
* Remove registries.BINARY_SENSOR_TYPES dict.
* Address PR comments.
2019-12-22 13:24:57 -05:00
Alexei Chetroi
9c23c4adf2
Cleanup ZHAEntity class ( #30131 )
...
Remove `_domain` attribute since we're not using it anymore.
2019-12-21 18:33:00 -05:00
Alexei Chetroi
8e3dfbd5c9
Refactor ZHA electrical measurement sensor. ( #30130 )
2019-12-21 17:15:50 -05:00
Alexei Chetroi
fb3bb8220b
Implement ZHA entity classes registry ( #30108 )
...
* ZHA Entity registry.
Match a zha_device and channels to a ZHA entity.
* Refactor ZHA sensor to use registry.
* Remove sensor_types registry.
* Fix ZHA device tracker battery remaining.
* Remove should_poll/force_update attributes.
* Fix binary_sensor regression.
* isort.
* Pylint.
* Don't access protected members.
* Address comments and fix spelling.
* Make pylint happy again.
2019-12-21 16:26:58 -05:00
HomeAssistant Azure
95a6a7502a
[ci skip] Translation update
2019-12-16 00:32:25 +00: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
HomeAssistant Azure
12f273eb11
[ci skip] Translation update
2019-12-10 00:32:16 +00: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
Bas Nijholt
6cc75fc6f3
Sort imports according to PEP8 for components starting with "Z" ( #29784 )
...
* use isort to sort imports for components starting with 'z'
* add skip to end of zha/core/channels/__init__.py
* put 'pylint: disable=import-error' at the right place
* remove the import of config_flow in zha/__init__.py
According to @balloob it is no longer needed.
* revert previous commit
* isort:skip homeassistant/components/zha/__init__.py completely
2019-12-09 18:54:54 +01:00
springstan
1ee8057662
Move imports to top for zha ( #29555 )
...
* Move imports to top for zha
* Move back some imports, add annotation for disabling import-outside-toplevel
* Move import config_flow before import api
2019-12-06 16:12:46 -05:00
HomeAssistant Azure
8dc366c75b
[ci skip] Translation update
2019-11-29 00:32:07 +00:00
Ville Skyttä
99c7608fb4
Lint config cleanups ( #28864 )
...
* Remove bunch of unneeded lint exclusions
* Use symbolic names instead of identifiers in pylint disables
* Tighten scope of some pylint disables
2019-11-25 22:40:08 -08: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
Ville Skyttä
d88ca0f5cb
Lint exclusions ( #28655 )
...
* Remove malformed pylint disable markers
* Remove some unused imports
* Remove some unneeded lint exclusions
* Remove more unneeded lint exclusions
* Add specific codes to all noqa's
2019-11-16 10:22:07 +01:00
David F. Mulcahey
376e3def1d
Bump ZHA quirks to 0.0.28 ( #28750 )
2019-11-13 09:25:45 -05:00
Alexei Chetroi
cfa689c3a6
Bump up ZHA dependencies. ( #28711 )
2019-11-11 20:53:23 -05:00
David F. Mulcahey
f2c56cff43
Bump ZHA quirks version ( #28636 )
2019-11-08 09:12:50 -08:00
HomeAssistant Azure
265c390b65
[ci skip] Translation update
2019-11-07 00:32:16 +00:00
HomeAssistant Azure
4863face69
[ci skip] Translation update
2019-11-02 00:31:48 +00:00
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
HomeAssistant Azure
72dee7dd21
[ci skip] Translation update
2019-10-28 00:32:16 +00:00
Alexei Chetroi
969322e14a
Fixes/zha ieee tail ( #28160 )
...
* Fix ZHA entity_id assignment.
* Update tests.
2019-10-24 12:23:02 -04:00
Paulus Schoutsen
23289459ca
Update translations
2019-10-23 13:36:38 -07:00
HomeAssistant Azure
2cc039dbc4
[ci skip] Translation update
2019-10-22 00:32:10 +00: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
HomeAssistant Azure
9e8c391c81
[ci skip] Translation update
2019-10-19 00:32:15 +00:00
HomeAssistant Azure
b8e00925e7
[ci skip] Translation update
2019-10-16 00:32:17 +00:00
HomeAssistant Azure
d8e3255603
[ci skip] Translation update
2019-10-15 00:31:44 +00:00
Erik Montnemery
c7bd0fe909
Fix ZHA regressions caused by "Support async validation of device trigger" ( #27401 )
...
* Revert "Support async validation of device trigger (#27333 )"
This reverts commit fdf4f398a7
.
* Revert only ZHA changes
* Fix whitespace
* Restore ZHA changes but add check to make sure ZHA is loaded
* Address review comment
* Remove additional check
2019-10-14 14:11:43 -04:00
HomeAssistant Azure
b37f0ad812
[ci skip] Translation update
2019-10-14 00:32:27 +00:00
HomeAssistant Azure
62b886a5d5
[ci skip] Translation update
2019-10-13 00:31:39 +00:00
HomeAssistant Azure
78a08d0425
[ci skip] Translation update
2019-10-12 00:31:47 +00:00
HomeAssistant Azure
4c71c6df6f
[ci skip] Translation update
2019-10-11 00:31:40 +00:00
HomeAssistant Azure
762a714d87
[ci skip] Translation update
2019-10-10 00:31:40 +00:00
Erik Montnemery
fdf4f398a7
Support async validation of device trigger ( #27333 )
2019-10-09 21:04:11 +02:00
Sébastien RAMAGE
1257706bd9
Update zigpy-zigate to 0.4.1 ( #27345 )
...
* Update zigpy-zigate to 0.4.1
Fix #27297
* Update zigpy-zigate to 0.4.1
Fix #27297
2019-10-09 08:47:43 -04:00
HomeAssistant Azure
768bb00177
[ci skip] Translation update
2019-10-09 00:32:17 +00:00
Erik Montnemery
0ba4ee1398
Validate generated device actions ( #27262 )
...
* Validate generated actions
* Use hass.services.async_call instead of service.async_call_from_config
2019-10-08 10:06:17 -07:00
HomeAssistant Azure
1087abd3b5
[ci skip] Translation update
2019-10-08 00:32:12 +00:00
Erik Montnemery
dabdf8b577
Validate generated device triggers ( #27264 )
...
* Validate generated trigger
* Update scaffold
2019-10-07 13:09:48 -07:00
Ville Skyttä
761d7f21e9
Upgrade pylint ( #27279 )
...
* Upgrade pylint to 2.4.2 and astroid to 2.3.1
https://pylint.readthedocs.io/en/latest/whatsnew/2.4.html
https://pylint.readthedocs.io/en/latest/whatsnew/changelog.html#what-s-new-in-pylint-2-4-1
https://pylint.readthedocs.io/en/latest/whatsnew/changelog.html#what-s-new-in-pylint-2-4-2
* unnecessary-comprehension fixes
* invalid-name fixes
* self-assigning-variable fixes
* Re-enable not-an-iterable
* used-before-assignment fix
* invalid-overridden-method fixes
* undefined-variable __class__ workarounds
https://github.com/PyCQA/pylint/issues/3090
* no-member false positive disabling
* Remove some no longer needed disables
* using-constant-test fix
* Disable import-outside-toplevel for now
* Disable some apparent no-value-for-parameter false positives
* invalid-overridden-method false positive disables
https://github.com/PyCQA/pylint/issues/3150
* Fix unintentional Entity.force_update override in AfterShipSensor
2019-10-07 08:17:39 -07:00
HomeAssistant Azure
85947591c5
[ci skip] Translation update
2019-10-04 00:32:16 +00:00
HomeAssistant Azure
e005f6f23a
[ci skip] Translation update
2019-10-03 00:34:28 +00:00
Alexei Chetroi
e011a94ce9
Bump up ZHA dependencies. ( #27127 )
2019-10-02 15:51:52 -07:00
Erik Montnemery
65ce3b49c1
Add support for `for` to binary_sensor, light and switch device triggers ( #26658 )
...
* Add support for `for` to binary_sensor, light and switch device triggers
* Add WS API device_automation/trigger/capabilities
2019-10-02 22:14:52 +02:00
Franck Nijhof
d4a67e3a30
Update documentation link URL for integrations (part2) ( #27117 )
2019-10-02 09:34:07 -07:00
Franck Nijhof
c7da781efc
Update documentation link URL for integrations in all manifests ( #27114 )
2019-10-02 09:25:44 -07:00
HomeAssistant Azure
2090d650c6
[ci skip] Translation update
2019-10-02 00:32:11 +00:00
HomeAssistant Azure
513d2652e4
[ci skip] Translation update
2019-10-01 00:32:19 +00:00
David F. Mulcahey
5bd3d4aa0b
Bump zha quirks to 0.0.26 ( #27051 )
2019-09-29 20:33:42 -04:00
HomeAssistant Azure
cdb469f711
[ci skip] Translation update
2019-09-30 00:32:17 +00:00
HomeAssistant Azure
560ac3df3a
[ci skip] Translation update
2019-09-29 00:32:13 +00:00
HomeAssistant Azure
2af34b461a
[ci skip] Translation update
2019-09-28 00:32:10 +00:00
Paulus Schoutsen
77654da341
Add templates to scaffold device_trigger, device_condition, ( #26871 )
...
device_action
2019-09-27 12:54:17 -07:00
David F. Mulcahey
b1a9fa47ca
Add device action support for ZHA ( #26903 )
...
* start implementing device actions
* rename file
* cleanup and add tests
* fix docstrings
* sort imports
2019-09-27 09:57:47 -07:00
HomeAssistant Azure
b04a70995e
[ci skip] Translation update
2019-09-27 00:32:12 +00:00
HomeAssistant Azure
ba92d781b4
[ci skip] Translation update
2019-09-26 00:32:13 +00:00
Sébastien RAMAGE
dc229ed569
Update zigpy_zigate to 0.4.0 ( #26883 )
...
* zigpy-zigate==0.4.0
* zigpy-zigate==0.4.0
2019-09-24 21:02:23 -07:00
David F. Mulcahey
31964d0f49
bump quirks ( #26885 )
2019-09-24 21:01:38 -07:00
HomeAssistant Azure
24c8db0121
[ci skip] Translation update
2019-09-25 00:32:16 +00:00
Paulus Schoutsen
6fdff9ffab
Reorg device automation ( #26880 )
...
* async_trigger -> async_attach_trigger
* Reorg device automations
* Update docstrings
* Fix types
* Fix extending schemas
2019-09-24 14:57:05 -07:00
Franck Nijhof
b1118cb8ff
Removes unnecessary else/elif blocks ( #26884 )
2019-09-24 13:53:03 -07:00
David F. Mulcahey
18873d202d
Add device automation support to ZHA ( #26821 )
...
* beginning ZHA device automations
* add cube
* load triggers from zigpy devices
* cleanup
* add face_any for aqara cube
* add endpoint id to events
* add cluster id to events
* cleanup
* add device tilt
* add test
* fix copy paste error
* add event trigger test
* add test for no triggers for device
* add exception test
* better exception tests
2019-09-24 08:54:41 -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
Abílio Costa
61634d0a64
Store ZHA light brightness when fading off to turn on at the correct brightness ( #26680 )
...
* Use light's on_level in ZHA to turn on at the correct brightness
Previously, if the light is turned off with a time transition, the
brightness level stored in the light will be 1. The next time the light
is turned on with no explicit brightness, it will be at 1.
This is solved by storing the current brightness in on_level before
turning off, and then using that when turning on (by calling the
onOff cluster 'on' command).
* store off light level locally to avoid wearing device's flash memory
* store off brightness in HA attributes
* improve set/clear of off_brightness
* fix device_state_attributes; clear off_brightness when light goes on
* fix tests
2019-09-23 09:08:44 -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
Abílio Costa
8de84c53a1
zha: fix 0 second transitions being ignored. ( #26654 )
...
Allow turning a light on instantly, with no transition time.
This is actually required for IKEA lights to be able to set brightness
and color temp in a single call.
2019-09-16 07:14:05 -04:00
Dan Ponte
bca7363a80
zha ZCL color loop effect ( #26549 )
...
* Initial implementation of ZCL color loop effect
* Fix linter complaints
* Use const for action
* Reformat with Black
* Cleanup after review.
* Handle effect being None
2019-09-13 22:06:09 -04:00
Sébastien RAMAGE
284ae01560
Bump zigpy-zigate to 0.3.1 ( #26600 )
...
* Bump zigpy-zigate to 0.3.1
Bump zigpy-zigate to 0.3.1 (fix Rpi.GPIO dependency)
* Bump zigpy-zigate to 0.3.1
Bump zigpy-zigate to 0.3.1 (fix Rpi.GPIO dependency)
2019-09-12 14:00:58 +02:00
Sébastien RAMAGE
3fda07a4ea
Bump zigate to 0.3.0 ( #26586 )
...
* Bump zigate to 0.3.0
2019-09-11 20:03:02 -04:00
David F. Mulcahey
c31efe50ca
bump dependencies ( #26576 )
2019-09-11 09:18:31 -04:00
David F. Mulcahey
1cea3a6abc
osram cluster ( #26555 )
2019-09-10 13:44:41 -07:00
David F. Mulcahey
4f3a2c0443
fix events for smartthings acceleration cluster ( #26557 )
2019-09-10 13:14:22 -07:00
David F. Mulcahey
fec6706bf7
use newly added is_server for cluster reporting ( #26533 )
2019-09-09 09:21:34 -04:00
Alexei Chetroi
3544f3d7e0
Bump ZHA dependencies. ( #26504 )
2019-09-07 21:14:32 -05:00
David F. Mulcahey
5237bd3fd1
fix cluster configuration ( #26494 )
2019-09-07 10:39:56 -04:00
Ville Skyttä
33e1b44b3a
Use PEP 526 type annotations, add some type hints ( #26464 )
...
* Add some more type hints to helpers.event
* Change most type comments to variable types
* Remove some superfluous type hints
2019-09-07 09:48:58 +03:00
Franck Nijhof
9035efee10
Fixes invalid JSON files and whitespace corrections in YAML files ( #26396 )
2019-09-03 16:02:42 -07:00
Franck Nijhof
dae6895a95
Use literal string interpolation in integrations X-Z (f-strings) ( #26395 )
2019-09-03 21:15:31 +02:00
Sébastien RAMAGE
6a5f7bd8e4
Update zigpy_zigate to 0.2.0 ( #26327 )
...
* Update zigpy_zigate to 0.2.0
* Update requirements_all.txt
2019-09-02 22:21:09 +02:00
David F. Mulcahey
25961df548
Fix ZHA state restore by always restoring last seen on devices ( #26271 )
...
* fix state restore by always restoring last seen
* cleanup
2019-08-29 12:44:53 -07:00
presslab-us
8e5d272b5f
Support formatting and scaling with ZHA Metering cluster ( #26201 )
...
* Support formatting and scaling with Metering cluster
* fix lint
* run black formatter
2019-08-26 23:16:54 -04: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
David F. Mulcahey
bde572c91a
bump quirks version ( #26198 )
2019-08-25 22:34:43 -07:00
David F. Mulcahey
46bfd5e9c8
bump quirks ( #26106 )
2019-08-21 09:13:04 -07: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
Quentame
ec2ce31204
Fix script/translations_develop launch + clean some unused error i18n ( #25459 )
...
* Fix : script/translations_develop launch + clean some unused error i18n
* Respecting strings.json order property
title
step
error
abort
* Review from @fredrike : remove Telldus Live all_configured
2019-08-11 20:40:18 -07:00
David F. Mulcahey
fafd228418
Refactor ZHA device initialized logic ( #25796 )
...
* refactor device initialized
* better names and update tests
* clean up last seen logic
* logging consistency
2019-08-09 18:52:47 -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
Sébastien RAMAGE
5b02555255
Add zigate support to zha ( #25552 )
...
* Add zigpy-zigate support
* update requirements
* fix
* update
* fix flake8
* update requirements
* fix
* update
* add test to make codecov happy
* fix flake8
* Try to add test
* add test
* remove unneeded test
* exclude registries.py from coverage
exclude homeassistant/components/zha/core/registries.py since untestable
* Fix merge: black formatting and flake8.
2019-08-05 18:05:07 -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
David F. Mulcahey
b073d87e08
stagger device init to avoid flooding network ( #25709 )
2019-08-05 10:14:19 -04:00
David F. Mulcahey
20b54c22f7
don't mark devices unavailable without ping try ( #25710 )
2019-08-05 09:50:48 -04:00
David F. Mulcahey
ac5fcff1cd
fix unique id in cluster channels ( #25707 )
2019-08-05 08:47:42 -04: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
David F. Mulcahey
3bd7b15b3d
bump quirks ( #25618 )
2019-07-31 21:33:12 -06:00
Paulus Schoutsen
37d78af42c
Add translations
2019-07-31 16:16:40 -07:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
Paulus Schoutsen
da05dfe708
Add Black
2019-07-31 12:23:23 -07:00
Ville Skyttä
0490167a12
Azure flake8 dep, docstring fixes ( #25605 )
...
* Fix Azure CI flake8 deps
* Docstyle fixes
2019-07-31 12:21:36 -07: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
David F. Mulcahey
d7bd7f2c4c
bump quirks version ( #25362 )
2019-07-21 10:02:22 -07:00
David F. Mulcahey
7a8130cd2b
fix remove and re-add scenario ( #25370 )
2019-07-21 10:00:27 -07:00
David F. Mulcahey
7ea27c0f2a
add available to device info ( #25349 )
2019-07-20 14:44:47 -04:00
David F. Mulcahey
ac91423d71
Fix device name customization on ZHA add devices page ( #25180 )
...
* ensure new device exists
* clean up dev reg handling
* update test
* fix tests
2019-07-16 15:16:49 -07: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
David F. Mulcahey
777e1ca832
bump zha-quirks version ( #25059 )
2019-07-10 11:59:06 -07:00
David F. Mulcahey
3c487928d4
New scanner device tracker and ZHA device tracker support ( #24584 )
...
* initial implementation for zha device trackers
* constant
* review comments
* Revert "review comments"
This reverts commit 2130823566820dfc114dbeda08fcdf76ed47a4e7.
* rename device tracker entity
* update trackers
* raise when not implemented
* Update homeassistant/components/device_tracker/config_entry.py
Review comment
Co-Authored-By: Martin Hjelmare <marhje52@kth.se>
* move source type to base state attrs
* review comments
* review comments
* review comments
* fix super call
* fix battery and use last seen from device
* add test
* cleanup and add more to test
* cleanup post zha entity removal PR
* add tests for base entities
* rework entity tests
2019-07-04 12:44:39 +02:00
David F. Mulcahey
a9459c6d92
Remove ZHA device entity ( #24909 )
...
* move availability handling to device
* update last_seen format
* add battery sensor
* fix interval
* fix battery reporting now that it is a sensor
* remove zha entities and add battery sensor
2019-07-03 13:36:36 -04: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
ac5ab52d01
Bump ZHA quirks module ( #24802 )
...
* bump quirks version
* bump version - mija magnet
2019-06-27 15:28:56 -04: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
26dea0f247
Update ZHA dependencies. ( #24736 )
2019-06-24 16:57:07 -04:00
David F. Mulcahey
d9420c1f73
Remove device and entity registry entries when removing a ZHA device ( #24369 )
...
* cleanup when device is removed
fixes
* cleanup
2019-06-24 11:26:44 -07:00
David F. Mulcahey
d22bb8fc7d
Update ZHA dependencies ( #24718 )
...
* update deps and remove legacy constants bridge
* run deps script and fix test import
2019-06-23 13:43:19 -04:00
David F. Mulcahey
cfd8d70890
ZHA fix device type mappings ( #24699 )
2019-06-22 15:05:35 -04:00
Alexei Chetroi
86e50530b0
Bump ZHA dependencies. ( #24637 )
2019-06-19 22:32:31 -04:00
David F. Mulcahey
227b8bdf8a
Better pairing for Xiaomi devices in ZHA ( #24564 )
...
* better xiaomi pairing
* cleanup.
2019-06-18 11:36:28 -04:00
David F. Mulcahey
c173a3be44
Misc. ZHA enhancements ( #24559 )
...
* add nwk to device info
* input bind only cluster support
* cleanup channel only clusters
* dirty hack to correct xiaomi vibration sensor
* exclude remaining remote binary sensors
* review comments
* fix comment
2019-06-16 13:17:53 -04:00
Jurriaan Pruis
b87c541d3a
Support ZLO device types to support newer Zigbee devices in ZHA ( #24429 )
...
* Support ZLO device types
Support the device types that are added in https://github.com/zigpy/zigpy/pull/176
so newer Zigbee devices can be supported.
* Remove BINARY_SENSOR mappings
* Add back ON_OFF_LIGHT_SWITCH, DIMMER_SWITCH and COLOR_DIMMABLE_LIGHT
Since they are target devices I've added them as switch and lights,
which matches the Zigbee documentation.
* Upgrade to zigpy-homeassistant v0.5.0
To be able to use the new DeviceTypes
2019-06-11 16:28:37 -04:00
Penny Wood
84e6813779
Rename via_hub to via_device ( #24360 )
...
* Rename via_hub to via_device
* Fixed registry interactions
2019-06-10 09:10:44 -07:00
Franck Nijhof
95d460c8bd
Fixes linter warning in ZHA sensor ( #24406 )
2019-06-08 07:29:35 -04:00
David F. Mulcahey
787bd75587
add device class to sensors ( #24373 )
2019-06-07 23:19:52 -07:00
presslab-us
cb460a85ba
Add support for ZHA door locks #2 ( #24344 )
...
* Add support for DoorLock cluster
* Add test for zha lock
* Change lock_state report to REPORT_CONFIG_IMMEDIATE
* Update channel command wrapper to return the entire result
This allows for return values other than result[1]
* Fix tests
* Fix lint
* Update DoorLock test to work with updated zigpy schema
* Fix lint
* Fix unlock test
2019-06-07 11:16:33 -04:00
David F. Mulcahey
592d30d495
Remove binary sensors for ZHA remotes and controllers ( #24370 )
...
* remove remote binary sensor profiles
* fix contact sensors
2019-06-07 11:13:55 -04:00
David F. Mulcahey
a79224aba8
Fix ZHA battery level when value is reported via signal ( #24371 )
...
* fix battery signal
* review comment
2019-06-07 11:02:35 -04:00
David F. Mulcahey
ae1bcd5fef
Use node descriptor from Zigpy for ZHA ( #24316 )
...
* use zigpy node descriptor
* cleanup
2019-06-06 08:31:03 -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
David F. Mulcahey
128ce589e1
Correct ZHA illumination conversion ( #23853 )
...
* fix illumination values
* correct formula
* update illuminance calculation
* update test
2019-05-14 07:16:41 +02:00
David F. Mulcahey
9b21774392
Fix ZHA battery when readings produce an unknown value ( #23854 )
...
* check for unknown readings
* only publish valid readings
* remove unused constant
2019-05-14 07:16:21 +02:00
David F. Mulcahey
eaf4a75402
bump zha-quirks ( #23855 )
2019-05-14 07:15:31 +02:00
damarco
990a9e80a2
Fix zha timed off ( #23849 )
2019-05-13 13:13:57 -04:00
Paulus Schoutsen
1e22c8daca
Automatically generate config flow list ( #23802 )
...
* Add config flow to manifest.json
* Still load config flows via config flow platform
* Fix typo
* Lint
* Update config_flows.py"
* Catch import error when setting up entry
* Lint
* Fix tests
* Fix imports
* Lint
* Fix Unifi tests
* Fix translation test
* Add homekit_controller config flow
2019-05-13 01:16:55 -07:00
Alexei Chetroi
910825580e
Do not add coordinator to the ZHA entities. ( #23803 )
2019-05-10 18:57:08 -04:00
David F. Mulcahey
73aadbe8bc
bump zha-quirks ( #23714 )
2019-05-06 08:35:11 -04:00
David F. Mulcahey
3dd1d3c418
Add additional single input cluster entries - ZHA ( #23697 )
...
* more profiles
* remove from binary sensor profile
* remove sensor profile mapping
2019-05-05 19:10:19 -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
David F. Mulcahey
41f0066e76
bump zha-quirks version ( #23568 )
2019-04-30 12:57:06 -04:00
David F. Mulcahey
d71424f285
Clean up ZHA discovery logic ( #23563 )
...
* use domain constants from HA
* cleanup endpoint processing in discovery
* Whitespace.
2019-04-30 10:40:52 -04:00
David F. Mulcahey
2aee31ec6a
Don't use zigpy profiles for ZHA entities ( #22844 )
...
* don't use zigpy profiles
* use sets as they're the correct structure to use
2019-04-29 19:31:27 -04:00
David F. Mulcahey
75f53b2799
Allow direct binding via ZHA for the ZLL profile ( #23536 )
...
* allow binding for zll profile
* update check - review comment
2019-04-29 11:35:18 -04:00
David F. Mulcahey
5aa9a1a7c2
limit concurrent updates to avoid network flood ( #23534 )
2019-04-29 09:39:37 -04:00
Tom Schneider
eefb9406c2
restore battery_quantity for zha devices ( #23320 )
2019-04-25 22:44:38 -05:00
damarco
b3c7142030
Bump zigpy and zigpy-xbee ( #23275 )
2019-04-20 18:04:30 -04:00
damarco
df32830f17
Bump zigpy-deconz ( #23270 )
2019-04-20 10:12:28 -04:00
David F. Mulcahey
c2b4e24372
update zha-quirks ( #23215 )
2019-04-18 20:23:48 -04:00
David F. Mulcahey
5e363d124e
fix bindable devices ( #23216 )
2019-04-18 20:21:30 -04:00
David F. Mulcahey
38d23ba0af
Misc. ZHA changes ( #23190 )
...
* handle the off part of on with timed off command
* use correct var
* only bind / configure cluster once
* clean up channel configuration
* additional debug logging
* add guard
* prevent multiple discoveries for a device
* cleanup and still configure on rejoin
2019-04-18 12:24:02 -04:00
Alexei Chetroi
479511ee42
Bugfix ZHA device_removed() handler. ( #23074 )
2019-04-13 12:57:22 -04:00
cgtobi
2c07bfb9e0
Remove dependencies and requirements ( #23024 )
...
* 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
Paulus Schoutsen
0d2646ba25
Update translations
2019-04-09 08:34:20 -07:00
Alexei Chetroi
64ea13104e
Fix ZHA Light color conversion. ( #22909 )
2019-04-09 05:48:17 -04:00