4 Miflora sensors work fine... except none report brightness

Title says it all. I have 4 Miflora sensors. Reporting works perfectly with temperature, humidity, conductivity. On all four though, there seems to be no brightness reported. Here’s what I see in the dashboard:

Screenshot_20211222_170149
Here’s what I have in configuration.yaml (minus the mac addresses which have been X’d out):


sensor:
  - platform: miflora
    name: Citrus tree
    mac: "XX:XX:XX:XX:XX:X"
    monitored_conditions:
      - moisture
      - temperature
      - conductivity
      - light


  - platform: miflora
    name: Aloe plant
    mac: "XX:XX:XX:XX:XX:X"
    monitored_conditions:
      - moisture
      - temperature
      - light
      - conductivity
      - battery

  - platform: miflora
    name: Spider plant
    mac: "XX:XX:XX:XX:XX:X"
    monitored_conditions:
      - moisture
      - temperature
      - light
      - conductivity
      - battery

plant:
  Spiderplant:
    sensors:
      moisture: sensor.spider_plant_moisture
      battery: sensor.spider_plant_conductivity
      temperature: sensor.spider_plant_temperature
      conductivity: sensor.spider_plant_conductivity
      brightness: sensor.spider_plant_brightness
    min_moisture: 15
    max_moisture: 60
    min_battery: 5
    min_temperature: 10
    max_temperature: 32
    min_conductivity: 200
    max_conductivity: 1300
    min_brightness: 500
    max_brightness: 30000
    check_days: 3

  Aloe:
    sensors:
      moisture: sensor.aloe_plant_moisture
      battery: sensor.aloe_plant_conductivity
      temperature: sensor.aloe_plant_temperature
      conductivity: sensor.aloe_plant_conductivity
      brightness: sensor.aloe_plant_brightness
    min_moisture: 7
    max_moisture: 50
    min_battery: 5
    min_temperature: 8
    max_temperature: 35
    min_conductivity: 300
    max_conductivity: 1000
    min_brightness: 3000
    max_brightness: 70000
    check_days: 3
    
  Citrus plant:
    sensors:
      moisture: sensor.citrus_tree_moisture
      battery: sensor.citrus_tree_conductivity
      temperature: sensor.citrus_tree_temperature
      conductivity: sensor.citrus_tree_conductivity
      brightness: sensor.citrus_tree_brightness
    min_moisture: 15
    max_moisture: 60
    min_battery: 5
    min_temperature: 16
    max_temperature: 32
    min_conductivity: 350
    max_conductivity: 2000
    min_brightness: 2500
    max_brightness: 30000
    check_days: 3

Configuration checker reports everything as OK. Yes, I know I need to give them fertilizer! :stuck_out_tongue_winking_eye: Any other ideas, gratefully appreciated!

on my esp32 isn’t ‘light’ but ‘illuminance’
i would try

 monitored_conditions:
      - moisture
      - temperature
      - illuminance # <---------light
      - conductivity
     # - battery

and i think battery don’t work

Is yours connecting to a Miflora? Because when I change my setup to “illuminance” the configuration checker complains:

Screenshot_20211222_175928

:thinking:

aww sorry
i have 2 esp32 and 2 mi flora
the config look like this

- platform: xiaomi_hhccjcy01
    mac_address: 'C4:7C:XX:XX:XX'
    temperature:
      name: "MiFlora Temperature"
      id: mitemp
    moisture:
      name: "MiFlora Moisture"
      id: mimois
    illuminance:
      name: "MiFlora Illuminance"
      id: milum
    conductivity:
      name: "MiFlora Soil Conductivity"
      id: miec

but it’s on esp32 / esphome

I can see in your config : sensor.spider_plant_brightness for light.
Maybe look for a sensor called something else than sensor.xxxxxx_brightness.(sensor.xxxxxx_illuminance or sensor.xxxxxxx_light or…)
And you have write for battery, conductivity. maybe just remove battery if it report nothing

i was looking at Mi Flora - Home Assistant (home-assistant.io) and seems your config is good

i do not use the plant integration because you already have all mi sensors without switching them into a plant.
And because this card isn’t really pretty , you could esily do the same with an entities /entity card
what does an entity card with

 entity: sensor.citrus_tree_brightness

?

and look at RodBr/miflora-card: A Home Assistant Lovelace card to report MiFlora plant sensors based on the HA Plant Card. (github.com)