Commit graph

442 commits

Author SHA1 Message Date
Raman Gupta
fd465df016
Bump zwave-js-server-python to 0.34.0 (#64407) 2022-01-18 22:33:50 -08:00
Raman Gupta
c3fc7becb6
Add zwave_js support for diagnostics (#64336) 2022-01-17 22:00:53 -08:00
Raman Gupta
9bb78af79c
Ignore unavailable entities when creating zwave_js device actions list (#64184)
* Fix bug with zwave-js device actions

* outdent

* Add test and fix bug

* fix
2022-01-16 13:22:18 +01:00
Marc Mueller
bcb93d95bb
Update typing (4) [u-z] (#63925) 2022-01-11 21:26:45 +01:00
GitHub Action
d3cd813c5e [ci skip] Translation update 2022-01-11 00:14:57 +00:00
Raman Gupta
7b3e5fdf9d
Fix zwave_js device actions (#63769) 2022-01-09 21:28:36 -08:00
GitHub Action
d99548fc04 [ci skip] Translation update 2022-01-10 00:14:49 +00:00
Marc Mueller
89859aad8d
Fix ParamSpec Callable return types (#63701) 2022-01-09 06:03:18 +01:00
GitHub Action
a8fee4c2f6 [ci skip] Translation update 2022-01-09 00:15:18 +00:00
Raman Gupta
9e4e43cf77
Handle zwave_js metadata/value updates when the unit changes (#63579)
* Handle zwave_js metadata updates when the unit changes

* Use value updated event instead of metadata updated event so we don't get an invalid state value

* update comments and formatting

* simplify

* Update tests/components/zwave_js/test_sensor.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Update tests/components/zwave_js/test_sensor.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Update tests/components/zwave_js/test_sensor.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* fix tests

* add additional assertions

* Add unit checks and simplify logic

* Add unit assertion

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-01-08 13:23:29 +01:00
GitHub Action
0827608302 [ci skip] Translation update 2022-01-08 00:14:39 +00:00
Marc Mueller
04e1933728
Use correct relative imports [n-z] (#63471) 2022-01-05 17:23:49 +01:00
Marc Mueller
53496c019c
Start using ParamSpec for decorator functions (#63148) 2022-01-04 18:37:46 +01:00
Andre Richter
acf3217449
Fix zwave_js ZWaveTiltCover docstring (#62972)
This is a small leftover from the PR that introduced the class, which
wasn't a generic class originally.
2021-12-28 19:24:27 -05:00
kpine
22e475790f
Avoid removing zwave_js devices for non-ready nodes (#59964)
* Only replace a node if the mfgr id / prod id / prod type differ

* Prefer original device name for unready node

* move register_node_in_dev_reg into async_setup_entry

* simplify get_device_id_ext

* Don't need hex ids

* Revert "move register_node_in_dev_reg into async_setup_entry"

This reverts commit f900e5fb0c67cc81657a1452b51c313bccb6f9e1.

* Revert Callable change

* Revert device backup name

* Add test fixtures

* Update existing not ready test with new fixture data

* Check device properties after node added event

* Add entity check

* Check for extended device id

* better device info checks

* Use receive_event to properly setup components

* Cleanup tests

* improve test_replace_different_node

* improve test_replace_same_node

* add test test_node_model_change

* Clean up long comments and strings

* Format

* Reload integration to detect node device config changes

* update assertions

* Disable entities on "value removed" event

* Disable node status sensor on node replacement

* Add test for disabling entities on remove value event

* Add test for disabling node status sensor on node replacement

* disable entity -> remove entity

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-12-27 12:31:31 +01:00
GitHub Action
cc92aa557a [ci skip] Translation update 2021-12-26 00:15:41 +00:00
Raman Gupta
639181108f
Add zwave_js support for Fortrezz SSA3 (#62765) 2021-12-25 10:33:20 +01:00
GitHub Action
cceedf766a [ci skip] Translation update 2021-12-22 00:14:51 +00:00
epenet
ce93364a36
Use new enums in zwave_js (#62432)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-20 15:18:15 -05:00
Robert Hillis
b559d8845e
Use enums in zwave_js (#62130)
* Use enums in zwave_js

* oops
2021-12-19 12:28:09 +01:00
GitHub Action
77843be01f [ci skip] Translation update 2021-12-15 00:13:42 +00:00
GitHub Action
eb345bfdf1 [ci skip] Translation update 2021-12-14 00:13:33 +00:00
Michael
90e52cd3ad
Use relative imports [S-Z] (#61576) 2021-12-13 09:39:13 +01:00
GitHub Action
f75b325ab2 [ci skip] Translation update 2021-12-12 00:14:30 +00:00
GitHub Action
0aaf9459ab [ci skip] Translation update 2021-12-10 00:13:29 +00:00
GitHub Action
1f1a29cada [ci skip] Translation update 2021-12-09 00:13:16 +00:00
GitHub Action
d69c6e3ab3 [ci skip] Translation update 2021-12-08 00:13:50 +00:00
GitHub Action
5258c5fc9c [ci skip] Translation update 2021-12-07 00:51:52 +00:00
Martin Hjelmare
dddca8aaeb
Improve zwave_js add-on config flow description (#61099) 2021-12-06 14:46:53 +01:00
epenet
358922db56
Use dataclass for HassioServiceInfo (#60824)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-03 14:05:56 +01:00
Erik Montnemery
0e3bc21d54
Teach state and numeric_state conditions about entity registry ids (#60841) 2021-12-02 14:55:12 -08:00
Martin Hjelmare
c8781bbe3b
Simplify zwave_js USB discovery add-on form (#60845) 2021-12-02 16:30:01 +01:00
Erik Montnemery
c85bb27d0d
Teach state trigger about entity registry ids (#60271)
* Teach state trigger about entity registry ids

* Tweak

* Add tests

* Tweak tests

* Fix tests

* Resolve entity ids during config validation

* Update device_triggers

* Fix mistake

* Tweak trigger validator to ensure we don't modify the original config

* Add index from entry id to entry

* Update scaffold

* Pre-compile UUID regex

* Address review comment

* Tweak mock_registry

* Tweak

* Apply suggestion from code review
2021-12-02 14:26:45 +01:00
Raman Gupta
eeafa36abc
Add SmartStart provisioning support to zwave_js WS API (#59037)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-12-01 11:43:51 +01:00
Michael Kowalchuk
15bf4dae9b
Add zwave_js speed configurations for GE/Jasco 12730 and 14287 fans (#60517) 2021-11-29 08:27:32 +01:00
GitHub Action
2918e2d7d0 [ci skip] Translation update 2021-11-29 00:13:08 +00:00
Erik Montnemery
caf5ee2fab
Remove optional validation when creating conditions (#60481) 2021-11-28 14:54:07 +01:00
GitHub Action
96313bbbe0 [ci skip] Translation update 2021-11-27 00:12:17 +00:00
Marc Mueller
25f8d4a189
Upgrade pylint to 2.12.1 (#60375) 2021-11-26 00:13:27 +01:00
GitHub Action
d3c020325b [ci skip] Translation update 2021-11-25 00:13:33 +00:00
epenet
5a8cbb8cab
Use UsbServiceInfo in zwave-js (#60267)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-24 07:51:28 -06:00
Michael Kowalchuk
74cfbf5f42
Use configured speed ranges for HomeSeer FC200+ fan controllers in zwave_js (#59697)
* Use configured speed ranges for HomeSeer FC200+ fan controllers in zwave_js

* Fix pylint errors

* Remove unused param in tests

* Fix test values

* Address various review notes

* Remove now-redundant assertion

* Add an additional test case for set_percentage=0

* Use round() instead of int() for percentage computations; this makes the percentage setting match the setpoints in the UI

* Add additional tests

* Fix pct conversions

* Make conversion tests exhaustive

* Add tests for discovery data templates

* Revert "Add tests for discovery data templates"

This reverts commit 85dcbc0903.

* Improve typing on ConfigurableFanSpeedDataTemplate#resolve_data

* Move config error handling to the discovery data template

* Fix checks for config data

* Revise fallback logic in percentage_to_zwave_speed and ensure that the speed list is non-empty

* Rework error handling

* Fix runtime fan speed updates

* Use warning instead of warn

* Move data validation to get_speed_config; turns out that resolve_data is only called once, at startup.

* Temporarily remove the not-yet-used fixed fan speed template.  Add an additional assertion to ensure speeds are sorted.

* Add a comment about the assertions in discovery_data_template.py

* Update homeassistant/components/zwave_js/discovery_data_template.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Fix typo in comment

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-11-24 11:31:59 +01:00
Raman Gupta
d249743ccf
Bump zwave-js-server-python to 0.33.0 (#60213) 2021-11-23 10:53:46 -05:00
GitHub Action
9e606abb0c [ci skip] Translation update 2021-11-23 00:13:54 +00:00
GitHub Action
31d4239b64 [ci skip] Translation update 2021-11-22 00:13:02 +00:00
GitHub Action
e98977fb49 [ci skip] Translation update 2021-11-21 00:13:51 +00:00
Paul Frank
a3139595bb
Remove zwave_js cover workaround (#59939) 2021-11-18 23:04:21 +01:00
GitHub Action
9a85c8d894 [ci skip] Translation update 2021-11-18 00:12:48 +00:00
Raman Gupta
edd068d6eb
Add explicit unit mapping for zwave_js meters and sensors (#59659)
* Add explicit unit mapping for zwave_js meters and sensors

* review comment

* fix

* alternate approach
2021-11-17 12:26:32 -05:00
Martin Hjelmare
b6dea3c6cb
Add more zwave_js binary sensor descriptions (#59474) 2021-11-17 12:53:44 +01:00