Skip to content

Commit

Permalink
BUG-2243 Add composite display to zigbee humidity sensors
Browse files Browse the repository at this point in the history
Updates profile to show both temperature and humidity on the device card for zigbee humidity/temperature sensors.
  • Loading branch information
greens committed Aug 27, 2024
1 parent cb1f617 commit 0e2f661
Show file tree
Hide file tree
Showing 7 changed files with 297 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,45 @@ preferences:
explicit: true
- preferenceId: humidityOffset
explicit: true
deviceConfig:
dashboard:
states:
- component: main
capability: temperatureMeasurement
version: 1
group: main
composite: true
- component: main
capability: relativeHumidityMeasurement
version: 1
group: main
values:
- label: " {{humidity.value}} {{humidity.unit}}"
composite: true
actions: [ ]
basicPlus: [ ]
detailView:
- component: main
capability: temperatureMeasurement
version: 1
- component: main
capability: relativeHumidityMeasurement
version: 1
- component: main
capability: battery
version: 1
- component: main
capability: refresh
version: 1
automation:
conditions:
- component: main
capability: temperatureMeasurement
version: 1
- component: main
capability: relativeHumidityMeasurement
version: 1
- component: main
capability: battery
version: 1
actions: []
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,51 @@ preferences:
explicit: true
- preferenceId: humidityOffset
explicit: true
deviceConfig:
dashboard:
states:
- component: main
capability: temperatureMeasurement
version: 1
group: main
composite: true
- component: main
capability: relativeHumidityMeasurement
version: 1
group: main
values:
- label: " {{humidity.value}} {{humidity.unit}}"
composite: true
actions: [ ]
basicPlus: [ ]
detailView:
- component: main
capability: temperatureMeasurement
version: 1
- component: main
capability: relativeHumidityMeasurement
version: 1
- component: main
capability: atmosphericPressureMeasurement
version: 1
- component: main
capability: battery
version: 1
- component: main
capability: refresh
version: 1
automation:
conditions:
- component: main
capability: temperatureMeasurement
version: 1
- component: main
capability: relativeHumidityMeasurement
version: 1
- component: main
capability: atmosphericPressureMeasurement
version: 1
- component: main
capability: battery
version: 1
actions: []
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,45 @@ preferences:
explicit: true
- preferenceId: humidityOffset
explicit: true
deviceConfig:
dashboard:
states:
- component: main
capability: temperatureMeasurement
version: 1
group: main
composite: true
- component: main
capability: relativeHumidityMeasurement
version: 1
group: main
values:
- label: " {{humidity.value}} {{humidity.unit}}"
composite: true
actions: [ ]
basicPlus: [ ]
detailView:
- component: main
capability: temperatureMeasurement
version: 1
- component: main
capability: relativeHumidityMeasurement
version: 1
- component: main
capability: atmosphericPressureMeasurement
version: 1
- component: main
capability: refresh
version: 1
automation:
conditions:
- component: main
capability: temperatureMeasurement
version: 1
- component: main
capability: relativeHumidityMeasurement
version: 1
- component: main
capability: atmosphericPressureMeasurement
version: 1
actions: []
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,39 @@ preferences:
explicit: true
- preferenceId: humidityOffset
explicit: true
deviceConfig:
dashboard:
states:
- component: main
capability: temperatureMeasurement
version: 1
group: main
composite: true
- component: main
capability: relativeHumidityMeasurement
version: 1
group: main
values:
- label: " {{humidity.value}} {{humidity.unit}}"
composite: true
actions: [ ]
basicPlus: [ ]
detailView:
- component: main
capability: temperatureMeasurement
version: 1
- component: main
capability: relativeHumidityMeasurement
version: 1
- component: main
capability: refresh
version: 1
automation:
conditions:
- component: main
capability: temperatureMeasurement
version: 1
- component: main
capability: relativeHumidityMeasurement
version: 1
actions: []
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,45 @@ preferences:
explicit: true
- preferenceId: humidityOffset
explicit: true
deviceConfig:
dashboard:
states:
- component: main
capability: temperatureMeasurement
version: 1
group: main
composite: true
- component: main
capability: relativeHumidityMeasurement
version: 1
group: main
values:
- label: " {{humidity.value}} {{humidity.unit}}"
composite: true
actions: [ ]
basicPlus: [ ]
detailView:
- component: main
capability: temperatureMeasurement
version: 1
- component: main
capability: relativeHumidityMeasurement
version: 1
- component: main
capability: battery
version: 1
- component: main
capability: refresh
version: 1
automation:
conditions:
- component: main
capability: temperatureMeasurement
version: 1
- component: main
capability: relativeHumidityMeasurement
version: 1
- component: main
capability: battery
version: 1
actions: []
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,39 @@ preferences:
explicit: true
- preferenceId: humidityOffset
explicit: true
deviceConfig:
dashboard:
states:
- component: main
capability: temperatureMeasurement
version: 1
group: main
composite: true
- component: main
capability: relativeHumidityMeasurement
version: 1
group: main
values:
- label: " {{humidity.value}} {{humidity.unit}}"
composite: true
actions: [ ]
basicPlus: [ ]
detailView:
- component: main
capability: temperatureMeasurement
version: 1
- component: main
capability: relativeHumidityMeasurement
version: 1
- component: main
capability: refresh
version: 1
automation:
conditions:
- component: main
capability: temperatureMeasurement
version: 1
- component: main
capability: relativeHumidityMeasurement
version: 1
actions: []
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ components:
capabilities:
- id: temperatureMeasurement
version: 1
config:
values:
- key: "temperature.value"
range: [-20, 100]
- id: relativeHumidityMeasurement
version: 1
- id: battery
Expand All @@ -16,3 +12,54 @@ components:
version: 1
categories:
- name: TempHumiditySensor
deviceConfig:
dashboard:
states:
- component: main
capability: temperatureMeasurement
version: 1
values:
- key: "temperature.value"
range: [-20, 100]
group: main
composite: true
- component: main
capability: relativeHumidityMeasurement
version: 1
group: main
values:
- label: " {{humidity.value}} {{humidity.unit}}"
composite: true
actions: [ ]
basicPlus: [ ]
detailView:
- component: main
capability: temperatureMeasurement
version: 1
values:
- key: "temperature.value"
range: [-20, 100]
- component: main
capability: relativeHumidityMeasurement
version: 1
- component: main
capability: battery
version: 1
- component: main
capability: refresh
version: 1
automation:
conditions:
- component: main
capability: temperatureMeasurement
version: 1
values:
- key: "temperature.value"
range: [-20, 100]
- component: main
capability: relativeHumidityMeasurement
version: 1
- component: main
capability: battery
version: 1
actions: []

0 comments on commit 0e2f661

Please sign in to comment.