Commit graph

20 commits

Author SHA1 Message Date
Alexei Chetroi
3ea8c25e1f light.zha: Catch exceptions for all commands. ()
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
7a52bbdf24 Allow only_cache parameter in zha.safe_read() ()
* 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
Paulus Schoutsen
994b829cb4
add_devices -> add_entities ()
* add_devices -> add_entities

* Lint

* PyLint

* Revert external method in scsgate
2018-08-24 16:37:30 +02:00
Alexei Chetroi
144bb3492a zha/light: Properly parse currentX and currentY on async_update() () 2018-05-28 10:32:47 -04:00
damarco
01ce43ec7c Use None as initial state in zha component ()
* Return None if state is unknown

* Use None as initial state
2018-05-12 14:41:44 +02:00
Per Osbäck
f287955422 zha: catch the exception from bellows if a device isn't available. ()
* catch the exception from bellows if a device isn't available.

* fix import of zigpy exception

* fix lint import
2018-03-19 14:12:53 -07:00
Adam Mills
89c7c80e42 Use hue/sat as internal light color interface ()
* Accept and report both xy and RGB color for lights

* Fix demo light supported_features

* Add new XY color util functions

* Always make color changes available as xy and RGB

* Always expose color as RGB and XY

* Consolidate color supported_features

* Test fixes

* Additional test fix

* Use hue/sat as the hass core color interface

* Tests updates

* Assume MQTT RGB devices need full RGB brightness

* Convert new platforms

* More migration

* Use float for HS API

* Fix backwards conversion for KNX lights

* Adjust limitless min saturation for new scale
2018-03-18 15:00:29 -07:00
Per Osbäck
f9e07e617c update to async/await () 2018-03-12 13:57:13 -07:00
Russell Cloran
f58e5f442d zha: Update to bellows 0.5.0+zigpy () 2018-02-05 16:05:19 -08:00
Russell Cloran
ff32f90a29 Fix zha color probe () 2018-01-15 14:25:59 -08:00
Adam Mills
3bc6a7da32 Support OSRAM lights on ZHA () 2018-01-11 13:56:00 -08:00
Pascal Vizeli
90f9a6bc0a Cleanup and simplitfy the async state update ()
* Cleanup and simplitfy the async state update

* Update test_entity.py
2017-09-12 10:01:03 +02:00
John K. Luebs
e22ec28bce Use ZCL mandatory attribute to determine ZHA light capabilities ()
The manadatory ColorCapabilities attribute should indicate whether a
light is capable of XY color changes and/or color temperature.
2017-08-31 00:18:01 -05:00
Jeff Wilson
3318f02664 Add transition support to light.zha ()
* Add transition support to light.zha

* Address hound formatting

* Address hound comments

Look, nobody is perfect... alright?

* Update zha.py
2017-07-26 17:22:31 +02:00
Russell Cloran
2f474a0ed8 zha: Handle both input and output clusters ()
bellows 0.3.0 changes the API to have both, renaming the attribute which used
to be for input clusters in the process.

This is in preparation for remotes.
2017-07-10 21:16:44 -07:00
Russell Cloran
b1bba3675d zha light: Refresh at startup ()
* zha light: Refresh at startup

* Add asyncio.coroutine annotation
2017-07-06 22:59:17 -07:00
Fabian Affolter
a4f1f6e724 Update docstrings ()
* Update docstrings

* Update docstrings

* Update docstrings

* Update docstrings

* Update docstrings

* Update docstrings

* Update docstring

* Update docstrings

* Update docstrings

* Fix lint issues

* Update docstrings

* Revert changes in dict
2017-05-02 09:18:47 -07:00
Alok Saboo
86cfc2a0ed Updated docstrings ()
* Updated docstrings

* Updated docstrings

* Updated docstrings

* Update docstrings

* Update more docstrings
2017-04-30 20:10:08 -07:00
Paulus Schoutsen
55731b759f Fix lint 2017-04-29 15:47:21 -07:00
Russell Cloran
d79f89e168 Add support for Zigbee Home Automation ()
* Add support for Zigbee Home Automation

* Fewer magic numbers

* Make optional device config work

* Remove non-zha device_tracker stuff

* Always return boolean from is_on

* Only pass through JSON serializable discovery_info

* Update to bellows 0.2.4

* Fewer magic numbers in binary sensor

* Populate const structures from a function

* Update bellows to 0.2.6

* Fewer magic numbers in light

* Take all possible clusters when overriding

* Update bellows to 0.2.7
2017-04-24 22:24:57 -07:00