From 9b4b5c7da1d2342afbd2d0479da4dc5d264f1780 Mon Sep 17 00:00:00 2001 From: Shay Levy Date: Fri, 21 May 2021 18:35:45 +0300 Subject: [PATCH] Add min/max/step to MQTT number (#17894) --- source/_integrations/number.mqtt.markdown | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/source/_integrations/number.mqtt.markdown b/source/_integrations/number.mqtt.markdown index bf36dd2a23f..9264a5720ef 100644 --- a/source/_integrations/number.mqtt.markdown +++ b/source/_integrations/number.mqtt.markdown @@ -99,6 +99,16 @@ json_attributes_topic: description: The MQTT topic subscribed to receive a JSON dictionary payload and then set as number attributes. Implies `force_update` of the current number state when a message is received on this topic. required: false type: string +min: + description: Minimum value. + required: false + type: float + default: 1 +max: + description: Maximum value. + required: false + type: float + default: 100 name: description: The name of the Number. required: false @@ -122,6 +132,11 @@ state_topic: description: The MQTT topic subscribed to receive number values. required: false type: string +step: + description: Step value. Smallest value `0.001`. + required: false + type: float + default: 1 unique_id: description: An ID that uniquely identifies this Number. If two Numbers have the same unique ID Home Assistant will raise an exception. required: false