From d240614f04c0132b24a9da038465956eef5de330 Mon Sep 17 00:00:00 2001 From: Jan Bouwhuis Date: Thu, 22 Aug 2024 19:22:17 +0200 Subject: [PATCH] Add `options` support to MQTT sensor (#34152) --- source/_integrations/sensor.mqtt.markdown | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/_integrations/sensor.mqtt.markdown b/source/_integrations/sensor.mqtt.markdown index e3e517d5a0f..7e0d60f4ea8 100644 --- a/source/_integrations/sensor.mqtt.markdown +++ b/source/_integrations/sensor.mqtt.markdown @@ -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