Commit graph

73 commits

Author SHA1 Message Date
Martin Hjelmare
0350a6ed21
Only create snapshot if add-on update will be done () 2021-03-04 16:38:33 -08:00
Raman Gupta
ee69e93b46
Bump zwave-js-server-python to 0.21.0 ()
Co-authored-by: Tobias Sauerwein <cgtobi@users.noreply.github.com>
2021-03-04 16:15:50 -08:00
Martin Hjelmare
682943511a
Make zwave_js add-on manager more flexible () 2021-03-04 14:14:24 -08:00
Martin Hjelmare
5ced7395f3
Fix access of missing zwave_js climate unit value () 2021-03-04 13:11:38 -08:00
Martin Hjelmare
d64fe6ea32
Fix zwave_js manual reconfiguration of add-on managed entry () 2021-03-04 13:11:07 -08:00
Chris
6d478804e7
Add LZW36 device schema to zwave_js discovery ()
* Add LZW26 device schema to discovery

Co-authored-by: @kpine

* Update homeassistant/components/zwave_js/discovery.py

Co-authored-by: kpine <keith.pine@gmail.com>

* Add tests

* Fix test

Co-authored-by: kpine <keith.pine@gmail.com>
2021-03-04 00:32:37 +01:00
Martin Hjelmare
d3721bcf26
Add zwave_js add-on manager ()
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-03-02 14:22:42 -08:00
Raman Gupta
42af775f53
Add raw values to zwave_js value notification event ()
* add value_raw to value notification event that always shows the untranslated state value

* add property key and property to event params
2021-03-02 16:10:30 -05:00
Marcel van der Veldt
853d9ac4a9
Update color logic for zwave_js light platform ()
Co-authored-by: Raman Gupta <7243222+raman325@users.noreply.github.com>
2021-03-01 17:12:49 -08:00
Raman Gupta
3e34bb3e89
Add suggested area for zwave_js devices () 2021-03-01 15:24:55 -08:00
Charles Garwood
d8633f94f6
Guard zwave_js missing nodes in websocket api () 2021-02-26 16:07:50 +01:00
Paulus Schoutsen
6bd253094f
Bump Z-Wave JS Server Python to 0.20.0 () 2021-02-25 22:01:08 -08:00
Raman Gupta
7118b7169c
catch ValueError when unique ID update fails because its taken and remove the duplicate entity () 2021-02-25 20:41:54 -05:00
Raman Gupta
a43f3c1a0c
Fix zwave_js unique ID migration logic () 2021-02-24 23:14:32 -08:00
Marcel van der Veldt
23cbd2dda3
Change Z-Wave JS discovery logic to adopt changes to DeviceClass ()
Co-authored-by: raman325 <7243222+raman325@users.noreply.github.com>
2021-02-24 12:59:06 -08:00
Marcel van der Veldt
868a536d81
Add number platform to Z-Wave JS ()
* add number platform to zwave_js integration
* add discovery scheme for thermostat valve control, using number platform

Co-authored-by: kpine <keith.pine@gmail.com>
2021-02-24 19:39:35 +01:00
Martin Hjelmare
db8f597f10
Fix zwave_js config flow server version timeout () 2021-02-24 16:22:58 +01:00
Raman Gupta
424526db7e
Migrate zwave_js entities to use new unique ID format ()
* migrate zwave_js entities to use new unique ID format

* remove extra param from helper

* add comment to remove migration logic in the future

* update comment

* use instance attribute instead of calling functino on every state update
2021-02-24 09:41:10 -05:00
Marcel van der Veldt
d4d68ebc64
Extend zwave_js discovery scheme for lights () 2021-02-23 16:31:24 -08:00
Raman Gupta
b657fd02cd
deep copy zwave_js state in test fixtures so tests are more isolated () 2021-02-23 18:58:25 -05:00
Raman Gupta
1a99562e91
Add zwave_js.refresh_value service ()
* add poll_value service

* switch vol.All to vol.Schema

* more relevant log message

* switch service name to refresh_value, add parameter to refresh all watched values, fix tests

* rename parameter and create task for polling command so we don't wait for a response

* raise ValueError for unknown entity

* better error message

* fix test
2021-02-23 18:58:04 -05:00
Martin Hjelmare
089effbe3f
Improve zwave_js config flow () 2021-02-23 13:41:19 -08:00
Raman Gupta
5a3bd30e01
Add zwave_js.set_config_parameter service ()
* create zwave_js.set_config_value service

* update docstring

* PR comments

* make proposed changes

* handle providing a label for the new value

* fix docstring

* use new library function

* config param endpoint is always 0

* corresponding changes from upstream PR

* bug fixes and add tests

* create zwave_js.set_config_value service

* update docstring

* PR comments

* make proposed changes

* handle providing a label for the new value

* fix docstring

* use new library function

* config param endpoint is always 0

* corresponding changes from upstream PR

* bug fixes and add tests

* use lambda to avoid extra function

* add services description file

* bring back the missing selector

* move helper functions to helper file for reuse

* allow target selector for automation editor

* formatting

* fix service schema

* update docstrings

* raise error in service if call to set value is unsuccessful

* Update homeassistant/components/zwave_js/services.yaml

Co-authored-by: Franck Nijhof <frenck@frenck.nl>

* Update homeassistant/components/zwave_js/services.yaml

Co-authored-by: Franck Nijhof <frenck@frenck.nl>

* Update homeassistant/components/zwave_js/services.yaml

Co-authored-by: Franck Nijhof <frenck@frenck.nl>

* Update homeassistant/components/zwave_js/services.yaml

Co-authored-by: Franck Nijhof <frenck@frenck.nl>

* Update homeassistant/components/zwave_js/services.yaml

Co-authored-by: Franck Nijhof <frenck@frenck.nl>

* Update homeassistant/components/zwave_js/services.yaml

Co-authored-by: Franck Nijhof <frenck@frenck.nl>

* remove extra param to vol.Optional

* switch to set over list for nodes

* switch to set over list for nodes

Co-authored-by: Marcel van der Veldt <m.vanderveldt@outlook.com>
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2021-02-23 11:35:11 -05:00
Martin Hjelmare
c94968d811
Catch more zwave_js errors () 2021-02-23 16:36:53 +01:00
Charles Garwood
3c35b6558b
Return states list from zwave_js get_config_parameters websocket if available () 2021-02-23 09:31:47 -05:00
Raman Gupta
1cecf229b9
Add zwave_js set_config_parameter WS API command ()
* add WS API command

* handle error scenario better

* fixes and remove duplicate catch

* make elif statement more compact

* fix conflict

* switch to str(err)
2021-02-22 20:34:47 -05:00
Raman Gupta
20ccec9aab
Add zwave_js/get_log_config and zwave_js/update_log_config WS API commands ()
* Add zwave_js.update_log_config service

* fix comment

* reduce lines

* move update_log_config from service to ws API call

* fix docstring

* Add zwave_js/get_log_config WS API command

* resolve stale comments

* remove transports since it will be removed from upstream PR

* add support to update all log config parameters since they could be useful outside of the UI for advanced users

* fix comment

* switch to lambda instead of single line validator

* fix rebase

* re-add ATTR_DOMAIN
2021-02-22 18:35:19 -05:00
Charles Garwood
04e07d8b2c
Add get_config_parameters websocket command to zwave_js ()
* Add get_configuration_values websocket command to zwave_js

* Tweak return value

* Review comments and cleanup returned values

* Update test

* Rename to get_config_parameters

* Add get_configuration_values websocket command to zwave_js

* Rename to get_config_parameters

* fix test

* fix tests 

* Add readable to metadata

Co-authored-by: Raman Gupta <7243222+raman325@users.noreply.github.com>
2021-02-22 17:03:38 -05:00
kpine
fb32c2e3a8
Test zwave_js GE 12730 fan controller device-specific discovery ()
* Add test for GE 12730 fan controller device-specific discovery

* Adjust

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-02-22 10:56:23 -08:00
kpine
2ae790283c
Detect iBlinds v2.0 switch value as a cover not light ()
* Remove unused "fibaro_fgs222" discovery hint

* Simplify multilevel switch current value discovery schema

* Force iBlinds v2.0 devices to be discovered as cover entities

* Rename discovery test file
2021-02-20 19:52:23 +01:00
Raman Gupta
788134cbc4
Bump zwave-js-server-python to 0.18.0 ()
* updates to support changes in zwave-js-server-python

* bump lib version

* use named arguments for optional args

* re-add lost commits
2021-02-20 09:50:00 +01:00
Raman Gupta
47dcd2bf32
Format zwave_js dump as json () 2021-02-19 18:44:15 -05:00
Raman Gupta
4d23ffacd1
Add zwave_js thermostat fan mode and fan state support ()
* add thermostat fan mode and fan state support

* return when fan mode is not supported

* use get just in case

* validate state key is in states so we dont have to use get

* pylint
2021-02-20 00:20:10 +01:00
kpine
dfa973f9ef
Add barrier covers to zwave_js integration () 2021-02-14 13:24:29 +01:00
Raman Gupta
af4e6f856f
Use better names for zwave_js platforms that are self describing ()
* use better names for platforms that are self describing

* add missing light change

* fix tests

* only use value_name in sensors and binary_sensors
2021-02-06 12:08:25 +01:00
Nathan Spencer
92886cafe9
Fix zwave_js cover control for Up/Down and Open/Close ()
* Fix issue with control of cover when the target value is Up/Down instead of Open/Close

* Adjust open/close/stop cover control to account for no Open/Up or Close/Down targets

* Revert back to using values of 0/99 to close/open a cover since it is supported by all covers

* Replace RELEASE_BUTTON with False and remove unused PRESS_BUTTON in zwave_js cover
2021-02-05 10:48:47 +01:00
Tobias Sauerwein
5615ab4c25
Add support for climate setpoint thermostats to zwave_js () 2021-02-03 13:59:19 +01:00
Jesse Campbell
eaa9fff3ba
Remove v4 multilevel transitional currentValue workaround in zwave_js ()
* Remove v4 multilevel transitional currentValue workaround

This was only needed because the get-after-set was reporting a
transitional currentValue instead of the final one.
zwave-js v6.1.1 removes the get-after-set functionality completely, so
this is no longer required (and breaks status reporting entirely)

* Fix tests to check currentValue instead of targetValue as well
2021-02-03 12:02:49 +01:00
Paulus Schoutsen
40ba182144
Upgrade Z-Wave JS Python to 0.17.0 () 2021-02-03 11:58:46 +01:00
Martin Hjelmare
524b9e7b1f
Use new zwave_js client ()
* Use new zwave_js client

* Remove client callbacks

* Clean up on connect and on disconnect

* Clean log

* Add stop listen to unsubscribe callbacks

* Fix most tests

* Adapt to new listen interface

* Fix most tests

* Remove stale connection state feature

* Bump zwave-js-server-python to 0.16.0

* Clean up disconnect
2021-02-02 20:59:56 +01:00
Martin Hjelmare
6e205965ee
Fix zwave_js device remove test () 2021-02-02 15:28:21 +01:00
Raman Gupta
a64ad50b27
Remove zwave_js devices that the controller is no longer connected to on initialization ()
* Remove zwave_js devices that the controller is no longer connected to on initialization

* remove extra line break

* fix test

* Clean up

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>

* Lint

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-02-02 10:30:12 +01:00
Marcel van der Veldt
0feda9ce63
Fix sensor discovery for zwave_js integration ()
Co-authored-by: Raman Gupta <7243222+raman325@users.noreply.github.com>
2021-02-02 10:06:09 +01:00
Raman Gupta
8d9b66e23d
Add current humidity to zwave_js climate platform () 2021-02-02 09:41:00 +01:00
Raman Gupta
3ef7bd6b73
Add notification events to zwave_js integration ()
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-02-02 09:37:42 +01:00
Marcel van der Veldt
b4559a172c
Add value notification events to zwave_js integration () 2021-02-01 23:47:58 +01:00
Raman Gupta
197c857e1f
Search all endpoints for value in zwave_js ()
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-02-01 14:46:06 -05:00
Chris
a8cf377ed7
Add stop_cover service for zwave_js () 2021-02-01 16:46:36 +01:00
Raman Gupta
0b63510cab
Add zwave_js binary sensors property name for Notification CC () 2021-02-01 09:45:24 +01:00
J. Nick Koston
0693d8a064
Update zwave_js to use new fan entity model () 2021-01-28 10:15:24 +01:00