From 9279cf2d7ee927bb6a5b0595d4620fad447c0f9d Mon Sep 17 00:00:00 2001 From: GrahamJB1 <26122648+GrahamJB1@users.noreply.github.com> Date: Fri, 3 Feb 2023 15:30:18 +0000 Subject: [PATCH] =?UTF-8?q?update=20unique=5Fid=20for=20slaves.=20Add=20to?= =?UTF-8?q?=20sensor=20min=5Fvalue,=20max=5Fvalue,=20zero=E2=80=A6=20(#258?= =?UTF-8?q?81)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: jan iversen --- source/_integrations/modbus.markdown | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/source/_integrations/modbus.markdown b/source/_integrations/modbus.markdown index 68d595efc5a..5fd0885e61f 100644 --- a/source/_integrations/modbus.markdown +++ b/source/_integrations/modbus.markdown @@ -268,7 +268,7 @@ slave: type: integer default: 0 unique_id: - description: An ID that uniquely identifies this sensor. If two sensors have the same unique ID, Home Assistant will raise an exception. + description: An ID that uniquely identifies this sensor. Slaves will be given a unique_id of <>_<>. If two sensors have the same unique ID, Home Assistant will raise an exception. required: false type: string {% endconfiguration %} @@ -375,7 +375,7 @@ binary_sensors: default: coil type: string unique_id: - description: An ID that uniquely identifies this sensor. If two sensors have the same unique ID, Home Assistant will raise an exception. + description: An ID that uniquely identifies this sensor. Slaves will be given a unique_id of <>_<>. If two sensors have the same unique ID, Home Assistant will raise an exception. required: false type: string slave_count: @@ -993,12 +993,24 @@ sensors: description: Unit to attach to value. required: false type: string + min_value: + description: The minimum allowed value of a sensor. If value < min_value --> min_value. Can be float or integer + required: false + type: float + max_value: + description: The maximum allowed value of a sensor. If value > max_value --> max_value. Can be float or integer + required: false + type: float + zero_suppress: + description: Suppress values close to zero. If -zero_suppress <= value <= +zero_suppress --> 0. Can be float or integer + required: false + type: float state_class: description: The [state_class](https://developers.home-assistant.io/docs/core/entity/sensor#available-state-classes) of the sensor. required: false type: string unique_id: - description: An ID that uniquely identifies this sensor. If two sensors have the same unique ID, Home Assistant will raise an exception. + description: An ID that uniquely identifies this sensor. Slaves will be given a unique_id of <>_<>. If two sensors have the same unique ID, Home Assistant will raise an exception. required: false type: string slave_count: