Commit Graph

25 Commits (039bc3501b7474f6fd5eb3fbc6f3345c9f438c83)

Author SHA1 Message Date
Raman Gupta c132900b92
Add zwave_js.set_lock_configuration service ()
* Add zwave_js.set_lock_configuration service

* Add tests

* string tweaks

* Update homeassistant/components/zwave_js/lock.py

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

* Update strings.json

* Update services.yaml

* Update lock.py

* Remove handle params

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-11-15 17:01:20 +01:00
Raman Gupta f511a8a26a
Expand `zwave_js.set_config_parameter` with additional parameters () 2023-11-08 17:05:31 -05:00
Raman Gupta 0fcaa2c581
Add `zwave_js.refresh_notifications` service () 2023-11-07 09:11:38 -05:00
Franck Nijhof d025b97bb9
Migrate Z-Wave services to support translations ()
* Migrate Z-Wave services to support translations

* Apply suggestions from code review

Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>

---------

Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-07-13 09:49:05 +02:00
Raman Gupta 4119d3198a
Support zwave config parameters not on endpoint 0 ()
* Support zwave config parameters not on endpoint 0

* Update device automation logic

* Make endpoint required

* Update homeassistant/components/zwave_js/services.py

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

* Update homeassistant/components/zwave_js/services.py

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

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-05-30 23:52:12 -04:00
karwosts 266905a9d3
Fix zwave_js services example data () 2023-05-07 17:31:25 +02:00
kpine f35af09429
Update zwave_js.refresh_value service example () 2022-10-22 08:27:36 +02:00
kpine bcbce6f159
Allow picking multiple entity targets for zwave_js.refresh_value service ()
Allow selection of multiple entities for zwave_js.refresh_value service
2022-10-05 08:30:34 +02:00
Raman Gupta 24b090a038
Create zwave_js.invoke_cc_api service () 2022-04-26 11:30:49 -04:00
Greg Sheremeta bcec4a5827
typo fix networrk --> network () 2022-02-19 15:30:07 +01:00
Raman Gupta e1c6ccb198
Add zwave_js.reset_meter service ()
* Add zwave_js.meter_reset service

* fix log statement

* Add endpoint attribute to service call and rename service

* Make service an entity service

* remove endpoint from service description
2021-07-28 23:15:27 +02:00
Raman Gupta 952cb964c8
Add new input to zwave_js.multicast_set_value service ()
* Tweak Z-Wave JS service and WS API commands

* Revert WS API change so it can be split out

* Add keywords
2021-07-23 10:35:44 -04:00
Raman Gupta 05fa220703
Add support for options in zwave_js.set_value service () 2021-07-20 10:31:12 +02:00
Raman Gupta f00f2b4ae4
Add zwave_js ping node service ()
* Add zwave_js ping node service

* uncomment code

* use asyncio.gather
2021-06-14 16:38:35 -04:00
Raman Gupta ca8d09e5e1
Add zwave_js.multicast_set_value service ()
* Add zwave_js.multicast_set_value service

* comment

* Add test for multiple config entries validation

* additional validation test

* brevity

* wrap schema in vol.Schema

* Update homeassistant/components/zwave_js/services.py

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

* do node transform and multicast validation in schema validation

* move poll value entity validation into schema validation, pass helper functions dev and ent reg instead of retrieving it every time

* make validators nested functions since they don't neeed to be externally accessible

* Update homeassistant/components/zwave_js/services.py

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

* Remove errant ALLOW_EXTRA

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-05-27 21:57:35 -04:00
tkdrob 028a07d86f
Wrap up selectors ()
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-05-25 14:45:17 +02:00
Raman Gupta bc3881db29
Add zwave_js.set_value service ()
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-03-30 11:13:48 +02:00
Raman Gupta 9a75019a65
Add zwave_js.bulk_set_partial_config_parameters service ()
* Add zwave_js.bulk_set_partial_config_parameters service

* update to handle command status

* add test for awake node

* test using a device in service call
2021-03-29 23:07:55 -04:00
Raman Gupta 6debf52e9b
Update zwave_js.refresh_value service description () 2021-03-05 20:57:06 +01: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
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
Raman Gupta 9d7c64ec1a
Add missing required=true to code slot field in zwave_js.set_lock_usercode service () 2021-02-22 23:42:12 +01:00
Raman Gupta 6e10b39d67
add name and target filter to zwave_js lock services.yaml () 2021-02-22 12:54:06 -05:00
Franck Nijhof 62e0949ea9
Add selectors to Z-Wave JS service definitions () 2021-02-18 16:24:04 +01:00
Raman Gupta c2900ff888
Add support for zwave_js lock services () 2021-01-23 18:21:31 -05:00