mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-16 13:56:53 +00:00
Correct documentation for template entity availability template (#20011)
This commit is contained in:
parent
df52f0eb3c
commit
cf40e424e4
@ -70,7 +70,7 @@ cover:
|
|||||||
required: false
|
required: false
|
||||||
type: template
|
type: template
|
||||||
availability_template:
|
availability_template:
|
||||||
description: Defines a template to get the `available` state of the component. If the template returns `true`, the device is `available`. If the template returns any other value, the device will be `unavailable`. If `availability_template` is not configured, the component will always be `available`.
|
description: Defines a template to get the `available` state of the entity. If the template either fails to render or returns either of `True`, `"1"`, `"true"`, `"yes"`, `"on"`, `"enable"` or a non-zero number, the entity is `available`. If the template returns any other value, the device will be `unavailable`. If not configured, the entity will always be `available`. Note that the string comparison not case sensitive; `"TrUe"` and `"yEs"` are allowed.
|
||||||
required: false
|
required: false
|
||||||
type: template
|
type: template
|
||||||
default: true
|
default: true
|
||||||
|
@ -94,7 +94,7 @@ fan:
|
|||||||
required: false
|
required: false
|
||||||
type: template
|
type: template
|
||||||
availability_template:
|
availability_template:
|
||||||
description: Defines a template to get the `available` state of the component. If the template returns `true`, the device is `available`. If the template returns any other value, the device will be `unavailable`. If `availability_template` is not configured, the component will always be `available`.
|
description: Defines a template to get the `available` state of the entity. If the template either fails to render or returns either of `True`, `"1"`, `"true"`, `"yes"`, `"on"`, `"enable"` or a non-zero number, the entity is `available`. If the template returns any other value, the device will be `unavailable`. If not configured, the entity will always be `available`. Note that the string comparison not case sensitive; `"TrUe"` and `"yEs"` are allowed.
|
||||||
required: false
|
required: false
|
||||||
type: template
|
type: template
|
||||||
default: true
|
default: true
|
||||||
|
@ -145,7 +145,7 @@ light:
|
|||||||
required: false
|
required: false
|
||||||
type: template
|
type: template
|
||||||
availability_template:
|
availability_template:
|
||||||
description: Defines a template to get the `available` state of the component. If the template returns `true`, the device is `available`. If the template returns any other value, the device will be `unavailable`. If `availability_template` is not configured, the component will always be `available`.
|
description: Defines a template to get the `available` state of the entity. If the template either fails to render or returns either of `True`, `"1"`, `"true"`, `"yes"`, `"on"`, `"enable"` or a non-zero number, the entity is `available`. If the template returns any other value, the device will be `unavailable`. If not configured, the entity will always be `available`. Note that the string comparison not case sensitive; `"TrUe"` and `"yEs"` are allowed.
|
||||||
required: false
|
required: false
|
||||||
type: template
|
type: template
|
||||||
default: true
|
default: true
|
||||||
|
@ -56,7 +56,7 @@ lock:
|
|||||||
required: true
|
required: true
|
||||||
type: template
|
type: template
|
||||||
availability_template:
|
availability_template:
|
||||||
description: Defines a template to get the `available` state of the component. If the template returns `true`, the device is `available`. If the template returns any other value, the device will be `unavailable`. If `availability_template` is not configured, the component will always be `available`.
|
description: Defines a template to get the `available` state of the entity. If the template either fails to render or returns either of `True`, `"1"`, `"true"`, `"yes"`, `"on"`, `"enable"` or a non-zero number, the entity is `available`. If the template returns any other value, the device will be `unavailable`. If not configured, the entity will always be `available`. Note that the string comparison not case sensitive; `"TrUe"` and `"yEs"` are allowed.
|
||||||
required: false
|
required: false
|
||||||
type: template
|
type: template
|
||||||
default: true
|
default: true
|
||||||
|
@ -60,7 +60,7 @@ switch:
|
|||||||
type: template
|
type: template
|
||||||
default: optimistic
|
default: optimistic
|
||||||
availability_template:
|
availability_template:
|
||||||
description: Defines a template to get the `available` state of the component. If the template returns `true`, the device is `available`. If the template returns any other value, the device will be `unavailable`. If `availability_template` is not configured, the component will always be `available`.
|
description: Defines a template to get the `available` state of the entity. If the template either fails to render or returns either of `True`, `"1"`, `"true"`, `"yes"`, `"on"`, `"enable"` or a non-zero number, the entity is `available`. If the template returns any other value, the device will be `unavailable`. If not configured, the entity will always be `available`. Note that the string comparison not case sensitive; `"TrUe"` and `"yEs"` are allowed.
|
||||||
required: false
|
required: false
|
||||||
type: template
|
type: template
|
||||||
default: true
|
default: true
|
||||||
|
@ -236,7 +236,7 @@ select:
|
|||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
availability:
|
availability:
|
||||||
description: Defines a template to get the `available` state of the component. If the template returns `true`, the device is `available`. If the template returns any other value, the device will be `unavailable`. If not configured, the component will always be `available`.
|
description: Defines a template to get the `available` state of the entity. If the template either fails to render or returns either of `True`, `"1"`, `"true"`, `"yes"`, `"on"`, `"enable"` or a non-zero number, the entity is `available`. If the template returns any other value, the device will be `unavailable`. If not configured, the entity will always be `available`. Note that the string comparison not case sensitive; `"TrUe"` and `"yEs"` are allowed.
|
||||||
required: false
|
required: false
|
||||||
type: template
|
type: template
|
||||||
default: true
|
default: true
|
||||||
@ -599,7 +599,7 @@ sensors:
|
|||||||
required: true
|
required: true
|
||||||
type: template
|
type: template
|
||||||
availability_template:
|
availability_template:
|
||||||
description: Defines a template to get the `available` state of the component. If the template returns `true`, the device is `available`. If the template returns any other value, the device will be `unavailable`. If `availability_template` is not configured, the component will always be `available`.
|
description: Defines a template to get the `available` state of the entity. If the template either fails to render or returns either of `True`, `"1"`, `"true"`, `"yes"`, `"on"`, `"enable"` or a non-zero number, the entity is `available`. If the template returns any other value, the device will be `unavailable`. If not configured, the entity will always be `available`. Note that the string comparison not case sensitive; `"TrUe"` and `"yEs"` are allowed.
|
||||||
required: false
|
required: false
|
||||||
type: template
|
type: template
|
||||||
default: true
|
default: true
|
||||||
|
@ -65,7 +65,7 @@ vacuum:
|
|||||||
required: true
|
required: true
|
||||||
type: template
|
type: template
|
||||||
availability_template:
|
availability_template:
|
||||||
description: Defines a template to get the `available` state of the component. If the template returns `true`, the device is `available`. If the template returns any other value, the device will be `unavailable`. If `availability_template` is not configured, the component will always be `available`.
|
description: Defines a template to get the `available` state of the entity. If the template either fails to render or returns either of `True`, `"1"`, `"true"`, `"yes"`, `"on"`, `"enable"` or a non-zero number, the entity is `available`. If the template returns any other value, the device will be `unavailable`. If not configured, the entity will always be `available`. Note that the string comparison not case sensitive; `"TrUe"` and `"yEs"` are allowed.
|
||||||
required: false
|
required: false
|
||||||
type: template
|
type: template
|
||||||
default: true
|
default: true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user