mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 17:27:19 +00:00
update unique_id for slaves. Add to sensor min_value, max_value, zero… (#25881)
Co-authored-by: jan iversen <jancasacondor@gmail.com>
This commit is contained in:
parent
d1e11a19a9
commit
9279cf2d7e
@ -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 <<unique_id>>_<<slave_index>>. 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 <<unique_id>>_<<slave_index>>. 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 <<unique_id>>_<<slave_index>>. If two sensors have the same unique ID, Home Assistant will raise an exception.
|
||||
required: false
|
||||
type: string
|
||||
slave_count:
|
||||
|
Loading…
x
Reference in New Issue
Block a user