Multiple Xiaomi miflora plant sensors in HA

I configured my first miflora plant sensor in HA and it worked. Then I added the 2nd sensor and that one is working good too, however the first sensor now doesn’t work anymore. (No more new data is entering HA for plant sensor 1)

This is (part of) my configuration.yaml:

# Xiaomi mi plant sensors
sensor:
  - platform: miflora
    mac: 'C4:7C:8D:6A:0F:B2'
    name: Plant 1
    median: 3
    monitored_conditions:
      - moisture
      - light
      - temperature
      - conductivity
      - battery
sensor:
  - platform: miflora
    mac: 'C4:7C:8D:6A:69:51'
    name: Plant 2
    median: 3
    monitored_conditions:
      - moisture
      - light
      - temperature
      - conductivity
      - battery

Should I add the sensors in a different way or aren’t 2 sensors at the same time supported by HA?
I installed Hass.io 2 days ago on a new raspberry pi 3 B.

You should remove the second sensor: line. Right now it’s overriding the first. That will fix your problem.

2 Likes

I was hoping it was something simple like this.

Thanks a lot, this solved my problem. :slight_smile:
(Now on to connecting small water pumps to sonoff S26 modules for automatic watering of my plants.)