Commit graph

18 commits

Author SHA1 Message Date
damarco
59ec469722 Use only_cache parameter in binary_sensor.zha.Remote () 2018-10-08 20:23:26 +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
Alexei Chetroi
f2203e52ef Add configure_reporting() method to zha component ()
* 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 ()

* use configure_reporting for zha switch

* lint fixes

* Rename variables/classes to properly reflect the content
2018-09-13 09:11:47 +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
87d55834be zha: handle "step_with_on_off" cluster command in LevelListener. () 2018-06-07 16:56:07 -04:00
damarco
ee7e59fe68 zha: Set default binary_sensor state to false () 2018-05-20 16:14:18 -07:00
David F. Mulcahey
4395217031 zha: Don't poll switch devices () 2018-05-20 16:00:51 -07: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
damarco
db31cdf075 Fix binary_sensor device_state_attributes () 2018-05-10 21:28:57 +02:00
damarco
6e831138b4 Fix binary_sensor async_update () 2018-05-10 10:59:23 -07:00
Russell Cloran
9d4d1c8233 zha: Clean up binary_sensor listener registration/state updates ()
- 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 () 2018-04-29 23:31:27 -07:00
Steve Easley
5e2296f2a4 Get zha switch and binary_sensor state on startup ()
* Get zha switch and binary_sensor state on startup

* Removed unused var

* Make zha switch report status

* Use right method name

* Formatting fix

* Updates to match latest dev

* PR feedback updates

* Use async for cluster commands
2018-03-08 19:31:52 -08:00
Russell Cloran
c7dad113d9 zha: Add support for XBee radios ()
* 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 () 2018-02-05 16:05:19 -08: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
Fabian Affolter
3ee4d1060f Update docstrings ()
* Update docstrings

* Update docstrings

* Update docstrings

* Update docstrings

* update docstrings

* Update docstrings

* Update docstrings

* Update docstrings

* Update docstrings

* Update docstrings

* Update tomato.py

* Update isy994.py

* Lint + fix tests

* Lint
2017-04-29 22:04:49 -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