mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-09-07 18:28:43 +00:00
Add Aqara TVOC sensor
This commit is contained in:
@@ -49,6 +49,8 @@ cards:
|
|||||||
entity: sensor.front_door_battery
|
entity: sensor.front_door_battery
|
||||||
- type: custom:battery-entity-row
|
- type: custom:battery-entity-row
|
||||||
entity: sensor.living_room_right_window_battery
|
entity: sensor.living_room_right_window_battery
|
||||||
|
- type: custom:battery-entity-row
|
||||||
|
entity: sensor.aqara_tvoc_battery
|
||||||
- type: divider
|
- type: divider
|
||||||
- type: custom:battery-entity-row
|
- type: custom:battery-entity-row
|
||||||
entity: sensor.bedroom_door_battery
|
entity: sensor.bedroom_door_battery
|
||||||
@@ -102,6 +104,7 @@ cards:
|
|||||||
- sensor.living_room_opple_lqi
|
- sensor.living_room_opple_lqi
|
||||||
- sensor.desk_switch_lqi
|
- sensor.desk_switch_lqi
|
||||||
- sensor.living_room_right_window_lqi
|
- sensor.living_room_right_window_lqi
|
||||||
|
- sensor.aqara_tvoc_lqi
|
||||||
- type: divider
|
- type: divider
|
||||||
- sensor.bedside_switch_lqi
|
- sensor.bedside_switch_lqi
|
||||||
# - sensor.bed_led_lqi
|
# - sensor.bed_led_lqi
|
||||||
|
|||||||
@@ -0,0 +1,34 @@
|
|||||||
|
aqara_tvoc_card:
|
||||||
|
card:
|
||||||
|
type: vertical-stack
|
||||||
|
cards:
|
||||||
|
- type: "custom:mini-graph-card"
|
||||||
|
entities:
|
||||||
|
- sensor.aqara_tvoc_voc
|
||||||
|
cache: false
|
||||||
|
group_by: hour
|
||||||
|
hours_to_show: 72
|
||||||
|
line_width: 2
|
||||||
|
show:
|
||||||
|
average: true
|
||||||
|
extrema: true
|
||||||
|
fill: true
|
||||||
|
|
||||||
|
- type: horizontal-stack
|
||||||
|
cards:
|
||||||
|
- type: "custom:mini-graph-card"
|
||||||
|
name: Temperature
|
||||||
|
entities:
|
||||||
|
- sensor.aqara_tvoc_temperature
|
||||||
|
font_size: 75
|
||||||
|
line_color: "var(--color-blue)"
|
||||||
|
line_width: 6
|
||||||
|
hours_to_show: 72
|
||||||
|
- type: "custom:mini-graph-card"
|
||||||
|
name: Humidity
|
||||||
|
entities:
|
||||||
|
- sensor.aqara_tvoc_humidity
|
||||||
|
font_size: 75
|
||||||
|
line_color: "var(--color-blue)"
|
||||||
|
line_width: 6
|
||||||
|
hours_to_show: 72
|
||||||
@@ -34,6 +34,9 @@
|
|||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: v3_badge_humidity
|
template: v3_badge_humidity
|
||||||
entity: sensor.multisensor_6_relative_humidity
|
entity: sensor.multisensor_6_relative_humidity
|
||||||
|
- type: custom:button-card
|
||||||
|
template: v3_badge
|
||||||
|
entity: sensor.aqara_tvoc_voc
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: v3_badge_icon
|
template: v3_badge_icon
|
||||||
entity: binary_sensor.living_room_right_window
|
entity: binary_sensor.living_room_right_window
|
||||||
|
|||||||
@@ -393,6 +393,12 @@ sensor.guest_bedroom_weather_humidity:
|
|||||||
- left_name: Temperature
|
- left_name: Temperature
|
||||||
- right_entity: sensor.guest_bedroom_weather_pressure
|
- right_entity: sensor.guest_bedroom_weather_pressure
|
||||||
|
|
||||||
|
sensor.aqara_tvoc_voc:
|
||||||
|
title: VOC
|
||||||
|
card:
|
||||||
|
type: custom:decluttering-card
|
||||||
|
template: aqara_tvoc_card
|
||||||
|
|
||||||
sensor.purifier_air_quality:
|
sensor.purifier_air_quality:
|
||||||
title: Bedroom air quality
|
title: Bedroom air quality
|
||||||
card:
|
card:
|
||||||
|
|||||||
@@ -238,6 +238,45 @@ sensor:
|
|||||||
name: "Terrarium weather LQI"
|
name: "Terrarium weather LQI"
|
||||||
state_topic: "z2m_deconz/terrarium_weather"
|
state_topic: "z2m_deconz/terrarium_weather"
|
||||||
availability_topic: "z2m_deconz/bridge/state"
|
availability_topic: "z2m_deconz/bridge/state"
|
||||||
icon: "mdi:signal"
|
unit_of_measurement: "lqi"
|
||||||
|
device_class: "signal_strength"
|
||||||
|
value_template: "{{ value_json.linkquality }}"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# Terrarium weather sensor
|
||||||
|
- platform: mqtt
|
||||||
|
name: "Aqara TVOC temperature"
|
||||||
|
state_topic: "z2m_deconz/aqara_tvoc"
|
||||||
|
availability_topic: "z2m_deconz/bridge/state"
|
||||||
|
unit_of_measurement: "°C"
|
||||||
|
device_class: "temperature"
|
||||||
|
value_template: "{{ value_json.temperature }}"
|
||||||
|
- platform: mqtt
|
||||||
|
name: "Aqara TVOC humidity"
|
||||||
|
state_topic: "z2m_deconz/aqara_tvoc"
|
||||||
|
availability_topic: "z2m_deconz/bridge/state"
|
||||||
|
unit_of_measurement: "%"
|
||||||
|
device_class: "humidity"
|
||||||
|
value_template: "{{ value_json.humidity }}"
|
||||||
|
- platform: mqtt
|
||||||
|
name: "Aqara TVOC voc"
|
||||||
|
state_topic: "z2m_deconz/aqara_tvoc"
|
||||||
|
availability_topic: "z2m_deconz/bridge/state"
|
||||||
|
unit_of_measurement: "ppb"
|
||||||
|
device_class: "volatile_organic_compounds"
|
||||||
|
value_template: "{{ value_json.voc }}"
|
||||||
|
- platform: mqtt
|
||||||
|
name: "Aqara TVOC battery"
|
||||||
|
state_topic: "z2m_deconz/aqara_tvoc"
|
||||||
|
availability_topic: "z2m_deconz/bridge/state"
|
||||||
|
unit_of_measurement: "%"
|
||||||
|
device_class: "battery"
|
||||||
|
value_template: "{{ value_json.battery }}"
|
||||||
|
- platform: mqtt
|
||||||
|
name: "Aqara TVOC LQI"
|
||||||
|
state_topic: "z2m_deconz/aqara_tvoc"
|
||||||
|
availability_topic: "z2m_deconz/bridge/state"
|
||||||
|
device_class: "signal_strength"
|
||||||
unit_of_measurement: "lqi"
|
unit_of_measurement: "lqi"
|
||||||
value_template: "{{ value_json.linkquality }}"
|
value_template: "{{ value_json.linkquality }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user