mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-22 16:56:50 +00:00
Binary sensor templates can return unknown state (#39739)
This commit is contained in:
parent
303d0b4f18
commit
120b257403
@ -382,7 +382,7 @@ binary_sensor:
|
||||
type: device_class
|
||||
default: None
|
||||
state:
|
||||
description: The sensor is `on` if the template evaluates as `True`, `yes`, `on`, `enable` or a positive number. Any other value will render it as `off`. The actual appearance in the frontend (`Open`/`Closed`, `Detected`/`Clear` etc) depends on the sensor's device_class value
|
||||
description: The sensor is `on` if the template evaluates as `True`, `yes`, `on`, `enable` or a positive number. The sensor is `unknown` if the template evaluates as `None`. Any other value will render it as `off`. The actual appearance in the frontend (`Open`/`Closed`, `Detected`/`Clear` etc) depends on the sensor's device_class value
|
||||
required: true
|
||||
type: template
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user