mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 17:27:19 +00:00
Add REST Switch state_resource (#14392)
This commit is contained in:
parent
753f48d1eb
commit
395b87a084
@ -23,9 +23,13 @@ switch:
|
||||
|
||||
{% configuration %}
|
||||
resource:
|
||||
description: The resource or endpoint that contains the value.
|
||||
description: The resource or endpoint used to control the REST switch.
|
||||
required: true
|
||||
type: string
|
||||
state_resource:
|
||||
description: "The resource or endpoint that reports the state if different from `resource`. Used by `is_on_template`. Defaults to `resource`."
|
||||
required: false
|
||||
type: string
|
||||
method:
|
||||
description: "The method of the request. Supported `post` or `put`."
|
||||
required: false
|
||||
|
Loading…
x
Reference in New Issue
Block a user