mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-27 19:26:50 +00:00
Add unique_id to modbus entities (#21332)
This commit is contained in:
parent
573dd42d89
commit
6909101f84
@ -265,6 +265,10 @@ slave:
|
|||||||
required: false
|
required: false
|
||||||
type: integer
|
type: integer
|
||||||
default: 0
|
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.
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
{% endconfiguration %}
|
{% endconfiguration %}
|
||||||
|
|
||||||
### Configuring data_type and struct
|
### Configuring data_type and struct
|
||||||
@ -314,6 +318,10 @@ swap:
|
|||||||
required: false
|
required: false
|
||||||
default: none
|
default: none
|
||||||
type: string
|
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.
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
{% endconfiguration %}
|
{% endconfiguration %}
|
||||||
|
|
||||||
## Configuring platform binary sensor
|
## Configuring platform binary sensor
|
||||||
@ -358,6 +366,10 @@ binary_sensors:
|
|||||||
required: false
|
required: false
|
||||||
default: coil
|
default: coil
|
||||||
type: string
|
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.
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
{% endconfiguration %}
|
{% endconfiguration %}
|
||||||
|
|
||||||
## Configuring platform climate
|
## Configuring platform climate
|
||||||
@ -435,6 +447,10 @@ climates:
|
|||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
default: C
|
default: C
|
||||||
|
unique_id:
|
||||||
|
description: An ID that uniquely identifies this sensor. If two sensors have the same unique ID, Home Assistant will raise an exception.
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
{% endconfiguration %}
|
{% endconfiguration %}
|
||||||
|
|
||||||
### Service `modbus.set-temperature`
|
### Service `modbus.set-temperature`
|
||||||
@ -526,6 +542,10 @@ covers:
|
|||||||
description: Modbus register type (holding, input), default holding.
|
description: Modbus register type (holding, input), default holding.
|
||||||
required: false
|
required: false
|
||||||
type: string
|
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.
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
{% endconfiguration %}
|
{% endconfiguration %}
|
||||||
|
|
||||||
### Example: Modbus cover controlled by a coil
|
### Example: Modbus cover controlled by a coil
|
||||||
@ -713,6 +733,10 @@ fans:
|
|||||||
required: false
|
required: false
|
||||||
default: same as command_off
|
default: same as command_off
|
||||||
type: integer
|
type: integer
|
||||||
|
unique_id:
|
||||||
|
description: An ID that uniquely identifies this sensor. If two sensors have the same unique ID, Home Assistant will raise an exception.
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
{% endconfiguration %}
|
{% endconfiguration %}
|
||||||
|
|
||||||
## Configuring platform light
|
## Configuring platform light
|
||||||
@ -802,6 +826,10 @@ lights:
|
|||||||
required: false
|
required: false
|
||||||
default: same as command_off
|
default: same as command_off
|
||||||
type: integer
|
type: integer
|
||||||
|
unique_id:
|
||||||
|
description: An ID that uniquely identifies this sensor. If two sensors have the same unique ID, Home Assistant will raise an exception.
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
{% endconfiguration %}
|
{% endconfiguration %}
|
||||||
|
|
||||||
## Configuring platform sensor
|
## Configuring platform sensor
|
||||||
@ -882,6 +910,10 @@ sensors:
|
|||||||
description: The [state_class](https://developers.home-assistant.io/docs/core/entity/sensor#available-state-classes) of the sensor.
|
description: The [state_class](https://developers.home-assistant.io/docs/core/entity/sensor#available-state-classes) of the sensor.
|
||||||
required: false
|
required: false
|
||||||
type: string
|
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.
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
{% endconfiguration %}
|
{% endconfiguration %}
|
||||||
|
|
||||||
<div class='note'>
|
<div class='note'>
|
||||||
@ -1001,6 +1033,10 @@ switches:
|
|||||||
required: false
|
required: false
|
||||||
default: same as command_off
|
default: same as command_off
|
||||||
type: integer
|
type: integer
|
||||||
|
unique_id:
|
||||||
|
description: An ID that uniquely identifies this sensor. If two sensors have the same unique ID, Home Assistant will raise an exception.
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
{% endconfiguration %}
|
{% endconfiguration %}
|
||||||
|
|
||||||
## Opening an issue
|
## Opening an issue
|
||||||
|
Loading…
x
Reference in New Issue
Block a user