Robbie Trencheny
c525ee9daa
Make this an error instead of an info
2017-05-06 23:11:11 -07:00
Josh Wright
2e4ae3e73d
PyPI Openzwave ( #7415 )
...
* Remove default zwave config path
PYOZW now has much more comprehensive default handling for the config
path (in src-lib/libopenzwave/libopenzwave.pyx:getConfig()). It looks in
the same place we were looking, plus _many_ more. It will certainly do a
much better job of finding the config files than we will (and will be
updated as the library is changed, so we don't end up chasing it). The
getConfig() method has been there for a while, but was subsntially
improved recently.
This change simply leaves the config_path as None if it is not
specified, which will trigger the default handling in PYOZW.
* Install python-openzwave from PyPI
As of version 0.4, python-openzwave supports installation from PyPI,
which means we can use our 'normal' dependency management tooling to
install it. Yay.
This uses the default 'embed' build (which goes and downloads
statically sources to avoid having to compile anything locally). Check
out the python-openzwave readme for more details.
* Add python-openzwave deps to .travis.yml
Python OpenZwave require the libudev headers to build. This adds the
libudev-dev package to Travis runs via the 'apt' addon for Travis.
Thanks to @MartinHjelmare for this fix.
* Update docker build for PyPI openzwave
Now that PYOZW can be install from PyPI, the docker image build process
can be simplified to remove the explicit compilation of PYOZW.
2017-05-05 14:57:14 -07:00
Fabian Affolter
4d52b0ecd5
Update docstrings ( #7405 )
...
* Update docstrings
* Fix lint issues
* Update docstrings
2017-05-02 22:47:20 +02:00
Fabian Affolter
a4f1f6e724
Update docstrings ( #7374 )
...
* 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
Paulus Schoutsen
9afbbbf3fe
Remove ordered_dict validator ( #7375 )
...
* Remove ordered_dict validator
* Lint
* Update test_config_validation.py
2017-04-30 10:55:03 -07:00
John Arild Berentsen
1836c7a358
Zwave cover workaround for graber shades. ( #7204 )
...
* wierd pylint complaint
* Workaround for Graber csz1 shades
* logging
* Try direct
* Try direct
* Use workaround
* Review changes and tests
* test
* reset test
* Use Bright and Dim also as open and close is
2017-04-22 16:23:39 +02:00
Paulus Schoutsen
a1208261a8
Load zwave panel ( #7127 )
...
* Load Z-Wave panel when component loads
* Update frontend
* Fix tests
2017-04-16 11:10:55 -07:00
Robbie Trencheny
e5756ba41d
Break product name up into manufacturer name and product name
2017-04-13 22:48:59 -07:00
Andrey
b6ee2332f4
Better thread safety in zwave node_entity ( #7087 )
...
* Better thread safety
* Update node_entity.py
2017-04-13 23:45:27 +03:00
Andrey
5e18c997f7
Add product_name attribute to zwave nodes. ( #7071 )
2017-04-12 21:12:37 +03:00
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
ChristianKuehnel
2413d97415
added support for Fibaro FGR-222 (similar to FGRM-222) ( #6890 )
2017-04-02 12:41:53 +03:00
Andrey
fb8323f48d
Remove zwave cover invert workaround. Use config instead. ( #6832 )
2017-03-28 23:01:29 +03:00
John Arild Berentsen
5a7155fc4a
Wrong info in discovery schema ( #6779 )
2017-03-25 19:39:03 +01: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
Sebastian
d6fd0f405e
Corrected help text for refresh_node ( #6659 )
...
Changed entity_id to node_id.
2017-03-16 21:50:01 +02: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
eaaa0442e2
Add a Z-wave workaround to do full refresh on update ( #6403 )
...
* Add Zwave refresh services
* services file
* Use dispatcher
* Add zwave prefix to signal
* Add a Z-wave workaround to do full refresh on update
2017-03-05 12:55:52 -08: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
91c3a49a5b
Zwave: Add forgotten service file ( #6073 )
...
* add print
* Add 'print_node' service to zwave.
* Add forgotten service file
2017-02-17 22:09:38 +02: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
Adam Mills
e6ece4bf6d
Fix initialization of zwave color bulbs ( #4085 )
...
* Fix initialization of zwave color bulbs
Zwave values can be added to the node in any order. This change allows
proper initialization when the multilevel value is added before the
color value.
* Fix incorrect rename of color command class
2016-10-29 17:14:28 -07:00
John Arild Berentsen
02afc98668
Prevent zwave from firing event at shutdown ( #3987 )
2016-10-22 14:08:24 +02:00
John Arild Berentsen
8b2edc1514
ZWave: Add association service ( #3894 )
...
* Add association service
* Refactor service
* Requested changes
* Grammar in pydocstyle
2016-10-16 20:36:06 +02:00
Lukas
ad259ead50
Add ignore option to zwave customize configuration ( #3865 )
2016-10-14 08:36:55 -07:00
Igor Shults
6951b6f60b
Allow any positive integer for Z-Wave polling intensity ( #3859 )
2016-10-14 00:09:52 -07:00
John Arild Berentsen
8f4608c654
Use only node id to identify node in set_config_parameter ( #3801 )
2016-10-13 23:45:00 -07:00
Lukas
1373db8b60
Include index and instance in object_id of zwave devices ( #3759 )
...
* Include index and instance in object_id of zwave devices
* Add the instance id if there is more than one instance for the value
2016-10-13 21:13:05 -07:00
John
1bc6366051
Increase allowable polling intensity values ( #3711 )
2016-10-05 16:58:06 +02:00
Fabian Affolter
0c68f381b0
Migrate to voluptuous ( #3679 )
2016-10-05 14:40:08 +02:00
John Arild Berentsen
17a8dd3f70
Add set_config_parameter service ( #3696 )
2016-10-04 22:04:19 -07:00
John Arild Berentsen
521080d1b0
Zwave: Update commandclasses and deviceclasses according to sigma SDK ( #3495 )
...
* Update Command classes and device types to Sigma SDK
* Fix some pylint
* Seperate constants to file
* Flake8
* coverage and flake8 pylint
* Add services.yaml
* Service descriptions was missing
* Spelling :)
* grammar
* Remove zwave service descriptions from main
2016-09-30 08:43:18 -07:00