John Arild Berentsen
d63028e44a
Add communication data attributes to Zwave node_entity ( #6813 )
...
* Add quality attribute to node
* Move quality to node_entity
* adjustments
* Line lenght
* flake8
* Cleanup and add each entry from getNodeStatistics as attribute
* resolve conflict
* Move NETWORK to hass.data
* Test Done
* Cleanup from review
* Resolve conflicts
* Review changes
* Long lines....
* blank line
* import-error-disable
* Update tests Part1... Again
* Hound
* Argh!
* Argh!
* YABBADABBADOOOOOOO!
* Enhance tests
* hound
* Resolve
* resolve tests...
2017-04-12 19:09:29 +02:00
Adam Mills
ee988dc884
Additional ZWave coverage ( #7024 )
...
* Additional ZWave coverage
* setup_platform tests
2017-04-10 16:11:39 -04:00
Adam Mills
31da54d530
Add tests for ZWaveDeviceEntityValues helper ( #6978 )
...
* Add tests for ZWaveDeviceEntityValues helper
* Add remaining coverage
2017-04-08 06:34:59 -07:00
Adam Mills
df77529bfe
Tests for zwave services ( #6937 )
...
* Initial tests for zwave services
* Fix linter issues
* Complete zwave service tests
2017-04-07 09:17:23 -04:00
Andrey
f96e06a2c2
Preserve customize glob order. ( #6963 )
...
* Preserve customize glob order.
* add tests
2017-04-06 22:39:35 -07:00
Adam Mills
75a3747f61
Rename zwave nodes by node ID instead of entity ID ( #6938 )
2017-04-05 08:11:37 -04:00
Adam Mills
06e1c21b1f
Support for zwave light transitions ( #6868 )
...
* Support for zwave light transitions
* Dimming duration is optional
* Updated supported_features to show transition
2017-04-03 14:56:48 -04:00
Andrey
fb8323f48d
Remove zwave cover invert workaround. Use config instead. ( #6832 )
2017-03-28 23:01:29 +03:00
Andrey
8a86ec5b74
Add zwave per-node entity. ( #6690 )
...
* Add zwave per-node entity.
* Disable lint import error
* Add tests for base class
* More tests
* More tests
* Sort .coveragerc
* more tests
* Move location, battery and wakeup to node entity
* More tests
* Cleanup
* Make zwave node entity visible by default
* Remove battery sensor
* Fix tests
2017-03-23 08:37:20 -07:00
Paulus Schoutsen
1a7ffdca52
Add "Refactor zwave discovery to entity schema" ( #6565 )
...
* Revert "Revert "Refactor zwave discovery to entity schema (#6445 )" (#6564 )"
This reverts commit 58826b264a
.
* Update zwave tests for enitity schema
* Fix merge error
* Switch dict_id to id(self)
2017-03-14 19:55:33 -04:00
Andrey
5722cf53bf
Fix for the case of zwave value used in several devices. ( #6577 )
2017-03-13 12:19:45 -05:00
Paulus Schoutsen
58826b264a
Revert "Refactor zwave discovery to entity schema ( #6445 )" ( #6564 )
...
This reverts commit 56abc7f9b4
.
2017-03-12 23:35:10 -07:00
Adam Mills
56abc7f9b4
Refactor zwave discovery to entity schema ( #6445 )
...
* Refactor zwave discovery to entity schema
* Address PR concerns
* Split DISCOVERY_SCHEMAS into separate file
* Only check cover reverse workaround once
2017-03-12 23:13:34 -07:00
Andrey
d5435cf066
Rename _scheduled_update to _update_scheduled ( #6434 )
2017-03-05 10:53:47 -08:00
Andrey
46ec6d6dce
Delay zwave updates for 100ms to group them. ( #6420 )
...
* Add Zwave refresh services
* services file
* Use dispatcher
* Add zwave prefix to signal
* Delay zwave updates for 100ms to group them.
* Fixes
* lint
* Access _scheduled_update from loop thread only.
* More async
* Some optimizations
* Fix
2017-03-05 09:29:59 -08:00
Andrey
aac9f972cf
Add Zwave refresh services ( #6377 )
...
* Add Zwave refresh services
* services file
* Use dispatcher
* Add zwave prefix to signal
2017-03-04 09:13:24 -08:00
Paulus Schoutsen
edf130b341
Z-Wave prevent I/O event loop ( #6369 )
...
* Prevent Z-Wave I/O in event loop
* Move value_handler to util class.
* Add docstring
2017-03-03 14:47:59 +02:00
Andrey
aa17481c94
Add Z-Wave battery level as a sensor. ( #6341 )
2017-03-03 09:19:06 +02:00
Andrey
597ae2e716
Zwave: Add remove/replace failed node services. ( #6248 )
...
* Zwave: Add remove/replace failed node services.
* Fix text
2017-03-02 12:36:40 +01:00
Andrey
354007f265
Zwave optimize value_added ( #6210 )
...
* Make zwave devices listen on less network changes.
* Convert more platforms
* Remove printouts.
* Fix copy-paste
* Change default dependent list to empty list
2017-03-01 22:41:19 -08:00
Pascal Vizeli
41f558b181
Bootstrap / Component setup async ( #6264 )
...
* Bootstrap / Entiy setup async
* Cleanup add_job stuff / return task/future object
* Address paulus comments / part 1
* fix install pip
* Cleanup bootstrap / move config stuff to config.py
* Make demo async
* Further bootstrap improvement
* Address Martin's comments
* Fix initial tests
* Fix final tests
* Fix bug with prepare loader
* Remove no longer needed things
* Log error when invalid config
* More cleanup
* Cleanups platform events & fix lint
* Use a non blocking add_entities callback for platform
* Fix Autoamtion is setup befor entity is ready
* Better automation fix
* Address paulus comments
* Typo
* fix lint
* rename functions
* fix tests
* fix test
* change exceptions
* fix spell
2017-02-28 20:33:19 -08:00
Andrey
b27ba9660b
Some zwave cleanup ( #6203 )
2017-02-24 16:17:27 +02:00
Andrey
1d32bced1c
Create zwave devices on OZW thread and only add them during discovery ( #6096 )
...
* Create zwave devices on OZW thread and only add them during discovery.
* Read and write devices dict from loop thread.
* More async
* replace callback with coroutine
* import common function instead of callin git
2017-02-23 13:06:28 -08:00
John Arild Berentsen
73a4c09597
Set configurable refresh for zwave light to 5 seconds default. ( #5957 )
...
* Set configurable refresh value delay to 5 seconds
* Revert "Remove configurable refresh value delay, and fix it to 5 seconds"
This reverts commit edc2dc35d165e5e13b0f3cf4df40493a7ce764f1.
* Use default value of 5 sec for refresh, and still configurable
* Make default delay 5secs, but needs to be activated
2017-02-20 15:49:34 +01:00
Andrey
beb8b4b11f
Zwave: add power_consumption attribute ( #6067 )
...
* Zwave: Pull power consumption value into attribute.
* Zwave: Add power_consumption attribute.
* fix condition
* Update __init__.py
* Update
* Simplify class condition
* Handle empty class_id
2017-02-18 16:51:13 -08:00
John Arild Berentsen
799fbe42f8
zwave refactor, don't use ozw values directly in properties. ( #5961 )
...
* First round of not using values directly
* Round two
* lint
* Round four
* Conflict
* Round five
* Update zwave.py
* round six
* Docstring
* flakywakie
* Fetch values in constructor
* Blank line removal
* Set attributes in callback
* Docstring
* Round seven
* Ughgit add homeassistant/components/lock/zwave.py!
* Sloppy code
2017-02-17 23:56:05 -08:00
Andrey
1f72506f9b
Add 'print_node' service to zwave ( #6069 )
...
* add print
* Add 'print_node' service to zwave.
2017-02-17 22:03:55 +02:00
Andrey
bb64560089
Zwave: Make different messages for ignores by woraround and device config. ( #6061 )
2017-02-17 16:19:21 +01:00
Andrey
905f4bf994
Support zwave glob & domain device settings. ( #6046 )
...
* Support zwave glob & domain device settings.
* data[DATA_DEVICE_CONFIG].get() now always return non-None
* Update test
* Update tests2
* Lint fix
2017-02-16 15:19:22 -08:00
Paulus Schoutsen
52567b1a48
Fix Z-Wave node config ( #5986 )
2017-02-13 22:16:39 -08:00
Paulus Schoutsen
36c196f9e8
Add initial Z-Wave config panel ( #5937 )
...
* Add Z-Wave config panel
* Add config to Z-Wave dependencies
* Lint
* lint
* Add tests
* Remove temp workaround
* Lint
* Fix tests
* Address comments
* Fix tests under Py34
2017-02-13 21:34:36 -08:00
Andrey
0feb1c3e28
Add workaround for ignoring zwave devices and reversing cover open/close ( #5922 )
2017-02-13 20:59:42 +02:00
Paulus Schoutsen
b2d1774293
Fix Z-Wave ( #5955 )
2017-02-13 08:54:11 -08:00
Paulus Schoutsen
8ca3ca8564
Z-Wave: Rename customize to device_config [Breaking change] ( #5933 )
...
* Z-Wave: Rename customize to device_config
* Fix light
* Make entity id not required
2017-02-12 23:55:27 -08:00
Andrey
f4372a7df5
Fix getters that ignored labels. ( #5903 )
...
* Fix getters that ignored labels.
* Try 5 times for changed dict
* fix lint
* Add decorator with retrying functions.
* Fix lint
* use retries instead of decorator
2017-02-12 15:42:09 -08:00
Andrey
0b5191a247
Add support for zwave wakeup setting. ( #5849 )
...
* Add support for zwave wakeup setting.
* rename wakeup
2017-02-10 08:54:48 -08:00
Andrey
5bd54f69cc
Fix zwave helper getter not to fail on some None results. ( #5845 )
2017-02-10 12:30:44 +02:00
John Arild Berentsen
298575f7cb
Adding helper for get and set values ( #5743 )
...
* cleanup
* Update __init__.py
* Update __init__.py
* Update __init__.py
2017-02-09 13:40:35 +01:00
Andrey
4b15946a9b
Make sure workaround_component is not none ( #5808 )
2017-02-08 21:11:36 +02:00
Andrey
1b54218d46
Create a file for zwave workarounds. ( #5798 )
...
* Create a file for zwave workarounds. Add sensor->binary_sensor for fgfs101 (#2 )
* Don't use default None
2017-02-07 20:37:11 -08:00
andrey-git
1fb372ffdb
Apply new customize format to Zwave ( #5603 )
2017-01-28 22:29:51 +02:00
Adam Mills
923431110a
[*.zwave] Refactor of zwave value_changed ( #5512 )
...
* Refactor of zwave value_changed
* Rename update_properties to update
* Revert "Rename update_properties to update"
This reverts commit 723578e7d4
.
2017-01-26 22:21:33 -08:00
John Arild Berentsen
5c006cd2d2
Prevent Homeassistant to create a segfault with OZW ( #5085 )
2017-01-02 18:53:46 +01:00
andrey-git
a7cc7ce476
Clean up DEFAULT_DEBUG constant in zwave ( #5138 )
...
Nice 👍
2017-01-02 18:45:44 +01:00
John Arild Berentsen
23f16bb68f
Catch RuntimeError ( #5134 )
2017-01-02 18:45:10 +01:00
andrey-git
7fbf68df35
Add print_config_parameter service to Z-Wave ( #5121 )
...
* Add print_config_param service to z-wave
* Add print_config_parameter service to z-wave
* Add print_config_parameter service to z-wave
* Fix typos
* Fix typos
* Fix typo
2017-01-01 21:10:45 +01:00
Jack Chapple
1f573b46a4
Fixes #4500 ( #4502 )
2016-11-21 19:35:36 -08:00
John Arild Berentsen
123f4acfc1
ZWave lights: Not use super() ( #4476 )
...
* Not use super
* Review changes
2016-11-20 11:49:54 -08:00
John Arild Berentsen
58f0655298
ZWave Light: Use Configurable refresh ( #4437 )
...
* Use Configurable refresh
* Use super instead of object
2016-11-18 21:59:01 +01:00
John Arild Berentsen
02afc98668
Prevent zwave from firing event at shutdown ( #3987 )
2016-10-22 14:08:24 +02:00