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