Using Aqara Temperature and Humidity Sensor with Home Assistant
As part of my heat pump preparation I thought it might be a good idea to have some baseline temperature statistics for the house.
I found the Aqara Temperature and Humidity Sensor which looked like a good option. I bought the three pack and then bought another three just a few days later. I now have them in the lounge, hallway, office, bedroom, summerhouse (gym) and loft (that is where my solar batteries and inverter are).
I could connect them straight to Home Assistant via Zigbee. I put Home Assistant in the pairing mode and pressed the button on the top. They were paired in seconds.
They provide the following data
Temperature
Humidity
Pressure
Battery
I am only interested in temperature and humidity. Below are the two cards that I have made in Home Assistant along with the YAML. I am only interested in humidity in the summerhouse and the loft.
I am using the Mini Graph Card. I am still playing with the gradients. The gradient is from dark blue (cold) to shades of green (comfortable) to dark red (very hot)
type: custom:mini-graph-card
entities:
- entity: sensor.lounge_aqara_sensor_temperature
name: Lounge Temperature
smoothing: true
show:
points: hover
average: true
extrema: true
fill: false
points_per_hour: 4
hours_to_show: 24
line_width: 5
color_thresholds:
- value: 15
color: '#193675'
- color: '#153E95'
- color: '#1246B6'
- color: '#0B4FE3'
- color: '#0B92E3'
- value: 19
color: '#00FF72'
- color: '#09E26A'
- color: '#0F984B'
- color: '#0CA851'
- color: '#0AC95F'
- value: 25
color: '#FA5151'
- color: '#F14040'
- color: '#EC2323'
- color: '#EA0C0C'
- color: '#BE0101'
- value: 30
color: '#550000'
type: custom:mini-graph-card
entities:
- entity: sensor.gym_aqara_sensor_temperature_temperature
show_state: true
- entity: sensor.gym_aqara_sensor_temperature_humidity
show_state: true
show_graph: false
name: Gym Temperature
smoothing: true
show:
points: hover
average: true
extrema: true
fill: false
points_per_hour: 4
hours_to_show: 24
line_width: 5
color_thresholds:
- value: 0
color: '#193675'
- color: '#153E95'
- color: '#1246B6'
- color: '#0B4FE3'
- color: '#0B92E3'
- value: 15
color: '#00FF72'
- color: '#09E26A'
- color: '#0F984B'
- color: '#0CA851'
- color: '#0AC95F'
- value: 25
color: '#FA5151'
- color: '#F14040'
- color: '#EC2323'
- color: '#EA0C0C'
- color: '#BE0101'
- value: 30
color: '#550000'
I have had one slight issue. The battery percentage was plummeting very quickly. I have opened a case with Aqara. Saying that they have now stabilised. I found this very old thread on Reddit reporting a similar problem. I also saw this in a Mastodon post and that user has reported the same issue, but his have also stabilised
This is the complete Home Assistant dashboard that I created. It has some other room information. I will be remaking this now that we have sections in Home Assistant