mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 09:17:06 +00:00
Add options
support to MQTT sensor (#34152)
This commit is contained in:
parent
8a429d4386
commit
d240614f04
@ -165,6 +165,10 @@ object_id:
|
||||
description: Used instead of `name` for automatic generation of `entity_id`
|
||||
required: false
|
||||
type: string
|
||||
options:
|
||||
description: List of allowed sensor state value. An empty list is not allowed. The sensor's `device_class` should be set to `enum`. Cannot be used together with `state_class` or `unit_of_measurement`.
|
||||
required: false
|
||||
type: list
|
||||
payload_available:
|
||||
description: The payload that represents the available state.
|
||||
required: false
|
||||
|
Loading…
x
Reference in New Issue
Block a user