Hello Guys,
For this issue, I went through the whole Internet but I could not find a solution.
I did integrate my Purifier correctly and everything seems to be working just fine. However, my AQI sensor is updating in very random moments - once per hour or after few minutes.
Is there any way to update the sensor with new readings every minute or 30 seconds? Having updated reading is important for most of the automatizations.
My sensor setup:
sensor:
# Xiaomi Air Purifier 3S
- platform: template
sensors:
xiaomi_airpurifier_temp:
friendly_name: "Temperature"
value_template: "{{ state_attr('fan.air_purifier', 'temperature') }}"
unit_of_measurement: "°C"
device_class: "temperature"
xiaomi_airpurifier_humidity:
friendly_name: "Humidity"
value_template: "{{ state_attr('fan.air_purifier', 'humidity') }}"
unit_of_measurement: "%"
device_class: "humidity"
xiaomi_airpurifier_air_quality_pm25:
friendly_name: "Air quality"
value_template: "{{ state_attr('fan.air_purifier', 'aqi') }}"
unit_of_measurement: "μg/m³"
xiaomi_airpurifier_speed:
friendly_name: "Fan speed"
value_template: "{{ state_attr('fan.air_purifier', 'motor_speed') }}"
unit_of_measurement: "rpm"
icon_template: "mdi:speedometer"
xiaomi_airpurifier_filter_remaining:
friendly_name: "Filter remaining"
value_template: "{{ state_attr('fan.air_purifier', 'filter_life_remaining') }}"
unit_of_measurement: "%"
icon_template: "mdi:heart-outline"type or paste code here
My card:
- type: entities
entities:
- entity: fan.air_purifier
- entity: input_select.xiaomi_airpurifier_mode
- entity: input_number.xiaomi_airpurifier_favorite_level
- entity: switch.xiaomi_airpurifier_child_lock
- entity: switch.xiaomi_airpurifier_led
- entity: switch.xiaomi_airpurifier_buzzer
- entity: sensor.xiaomi_airpurifier_speed
- entity: sensor.xiaomi_airpurifier_filter_remaining
show_header_toggle: false
theme: default
title: Air Purifier
- type: entities
entities:
- entity: sensor.xiaomi_airpurifier_air_quality_pm25
- entity: sensor.xiaomi_airpurifier_temp
- entity: sensor.xiaomi_airpurifier_humidity
show_header_toggle: false
theme: default
title: Environment
- type: history-graph
entities:
- entity: sensor.xiaomi_airpurifier_air_quality_pm25
hours_to_show: 80
refresh_interval: 60
title: Air quality
Please help!