Add unique ID support to Trend integration YAML configuration (#39677)

This commit is contained in:
Franck Nijhof 2025-06-23 20:03:39 +02:00 committed by GitHub
parent bd9aa543cf
commit a3e4670c5f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -106,6 +106,12 @@ sensors:
required: false required: false
type: integer type: integer
default: 0 default: 0
unique_id:
description: >
An ID that uniquely identifies this sensor. Set this to a unique value to allow
customization through the UI and to enable the sensor to be placed in areas.
required: false
type: string
{% endconfiguration %} {% endconfiguration %}
## Using Multiple Samples ## Using Multiple Samples
@ -148,6 +154,7 @@ binary_sensor:
sensors: sensors:
temp_falling: temp_falling:
entity_id: sensor.outside_temperature entity_id: sensor.outside_temperature
unique_id: outside_temp_falling_trend
sample_duration: 7200 sample_duration: 7200
max_samples: 120 max_samples: 120
min_samples: 20 min_samples: 20
@ -156,6 +163,7 @@ binary_sensor:
temp_rising: temp_rising:
entity_id: sensor.outside_temperature entity_id: sensor.outside_temperature
unique_id: outside_temp_rising_trend
sample_duration: 7200 sample_duration: 7200
max_samples: 120 max_samples: 120
min_samples: 20 min_samples: 20