Commit graph

93 commits

Author SHA1 Message Date
Adam Mills
a94e7ec25d Fix Z-Wave barrier discovery for new API () 2017-07-30 00:40:56 -04:00
Adam Mills
80ab02c3e8 Correctly discover GE Fan Controllers () 2017-07-29 16:24:15 -04:00
Paulus Schoutsen
5779d64e98 Fix some issues for PyLint 1.7.2 ()
* Fix some issues for PyLint 1.7.2

* More fixes

* Revert position change for cover
2017-07-05 20:02:16 -07:00
JudgeDredd
33fd2250fd further document add_node_secure ()
added documentation to *attempt* explanation that add_node_secure will also function for adding unsecure nodes.
2017-06-30 10:00:38 +03:00
Adam Mills
1fe189e9cb Switch to new zwave entity ids by default () 2017-06-24 15:01:57 -04:00
Andrey
b2d6ff9783 More updates to zwave services.yaml file () 2017-06-18 22:38:14 -07:00
Andrey
32a84f1466 Add to zwave services descriptions () 2017-06-17 10:02:37 -07:00
Adam Mills
afb9cba806 Use standard entity_ids for zwave entities ()
* Use standard entity_ids for zwave entities

* Include temporary opt-in for new entity ids

* Update link to blog post

* Update tests

* Add old entity_id as state attribute

* Expose ZWave value details

* Update tests

* Also show new_entity_id

* Just can't win with this one
2017-06-16 13:07:17 -04:00
Adam Mills
ae3973144c Discover Z-Wave values by index ()
* Discover Z-Wave values by index

* Add URLs for enums (Some Assembly Required)

* URLs on one line

* Move lint suppression to single line
2017-06-14 08:41:20 -04:00
Adam Mills
9c9f5068b7 Support for renaming ZWave values ()
* Support for renaming ZWave values

* Improve test
2017-06-02 23:03:00 -07:00
Adam Mills
e0712ba329 Expose the node name on the zwave node entity () 2017-06-01 22:33:16 -07:00
Adam Mills
9e9705d6b2 Support for GE Zwave fan controller ()
* Support for GE Zwave fan controller

* Tests for zwave fan

* Add additional fan workarounds
2017-05-25 22:55:00 -07:00
Adam Mills
65c3201fa6 Rename of the zwave hass.data constants ()
* Rename of the zwave hass.data constants

* Remove zwave since it is already implied
2017-05-25 21:11:02 -07:00
John Arild Berentsen
4a0d6e73f4 ZWave: Add reset service to meters ()
* Add reset service for command_class meters.

* Add reset service for command_class meters.

* cast index to const.py
2017-05-21 20:15:24 +02:00
Andrey
927024714b Zwave: Apply refresh_node workaround on 1st instance only ()
* Apply refresh_node workaround on 1st instance only

* Add another test
2017-05-21 17:33:42 +03:00
Robbie Trencheny
7daa92249a Add network_key as a config option ()
* Add network_key as a config option

* Update __init__.py
2017-05-18 23:49:15 -07:00
John Arild Berentsen
88ffe39945 Final tweaks for Zwave panel ()
* # This is a combination of 3 commits.
# The first commit's message is:
Add seperate zwave panel

# The 2nd commit message will be skipped:

#	unused import

# The 3rd commit message will be skipped:

#	Use get for config

* Add seperate zwave panel

* Modify set_config_parameter to accept setting string values

* descriptions

* Tweaks

* Tweaks

* Tweaks

* Tweaks

* lint

* Fallback if no config parameteres are available

* Update services.yaml

* review changes
2017-05-18 17:39:31 -07:00
John Arild Berentsen
1eaec8f406 Zwave panel api ()
* # This is a combination of 3 commits.
# The first commit's message is:
Add seperate zwave panel

# The 2nd commit message will be skipped:

#	unused import

# The 3rd commit message will be skipped:

#	Use get for config

* Add seperate zwave panel

* more info

* Add usercodeview

* Improve api

* Improve api

* Separate api into own file.

* disable missing import

* review changes

* Tests 1

* Verify that we fetch data from groups

* Tests groups

* config 1

* usercode 1

* Api mods

* Tweak API

* docstrings

* 100% api testing
2017-05-09 18:56:41 -07:00
Robbie Trencheny
c525ee9daa Make this an error instead of an info 2017-05-06 23:11:11 -07:00
Josh Wright
2e4ae3e73d PyPI Openzwave ()
* 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 ()
* Update docstrings

* Fix lint issues

* Update docstrings
2017-05-02 22:47:20 +02: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
Paulus Schoutsen
9afbbbf3fe Remove ordered_dict validator ()
* 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. ()
* 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 ()
* 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 ()
* Better thread safety

* Update node_entity.py
2017-04-13 23:45:27 +03:00
Andrey
5e18c997f7 Add product_name attribute to zwave nodes. () 2017-04-12 21:12:37 +03:00
John Arild Berentsen
d63028e44a Add communication data attributes to Zwave node_entity ()
* 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 ()
* Additional ZWave coverage

* setup_platform tests
2017-04-10 16:11:39 -04:00
Adam Mills
31da54d530 Add tests for ZWaveDeviceEntityValues helper ()
* Add tests for ZWaveDeviceEntityValues helper

* Add remaining coverage
2017-04-08 06:34:59 -07:00
Adam Mills
df77529bfe Tests for zwave services ()
* 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. ()
* 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 () 2017-04-05 08:11:37 -04:00
Adam Mills
06e1c21b1f Support for zwave light transitions ()
* 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) () 2017-04-02 12:41:53 +03:00
Andrey
fb8323f48d Remove zwave cover invert workaround. Use config instead. () 2017-03-28 23:01:29 +03:00
John Arild Berentsen
5a7155fc4a Wrong info in discovery schema () 2017-03-25 19:39:03 +01:00
Andrey
8a86ec5b74 Add zwave per-node entity. ()
* 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 ()
Changed entity_id to node_id.
2017-03-16 21:50:01 +02:00
Paulus Schoutsen
1a7ffdca52 Add "Refactor zwave discovery to entity schema" ()
* Revert "Revert "Refactor zwave discovery to entity schema ()" ()"

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. () 2017-03-13 12:19:45 -05:00
Paulus Schoutsen
58826b264a Revert "Refactor zwave discovery to entity schema ()" ()
This reverts commit 56abc7f9b4.
2017-03-12 23:35:10 -07:00
Adam Mills
56abc7f9b4 Refactor zwave discovery to entity schema ()
* 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 ()
* 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 () 2017-03-05 10:53:47 -08:00
Andrey
46ec6d6dce Delay zwave updates for 100ms to group them. ()
* 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 ()
* 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 ()
* 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. () 2017-03-03 09:19:06 +02:00