Mi Flora plant sensor

Well that depends on the plants preference, the soil type, the environment and where the plant comes from. To answer your question it’s a %. Most plants won’t like it above 35% or below 5-10%, there are extremes tho’ such as cati and bog plants.

Thanks a million, but that’s not what I wanted. What I want is to change this value in the frontend:

Instead of “18%” I want to display “Needs water” (when value is below 20).

Thanks

You can know what the recommended values are in the Flower Power app:

Click on your plant name -> Go to “Reports” and slide left over the condition. You’ll see something like this:

(My screenshot shows 0-0% in “Appropriate range” because the device wasn’t connected to the app)

Add a template sensor and then add it to your group…

- platform: template
  sensors:
    vfernwaterplant:
      friendly_name: 'Volcano Fern Moisture Level'
      value_template: >
        {% if (states.sensor.miflora_volcano_fern_moisture | int < 12) %}'Needs Water'
        {% else %}(states.sensor.miflora_volcano_fern_moisture | int)
        {% endif %}
1 Like

anyone know of it has broken again 0.68?

Just updated to 0.68 and it is still working for me

I just added support for the MiFlora sensor to this BT to MQTT gateway: https://github.com/zewelor/bt-mqtt-gateway/

It works really well for me and it’s really easy to add new supported devices using workers.

Highly recommend this as a stable way to use BT devices in HASS.

Hi!

Thanks a lot for your suggestion. However, it’s not working. Even though the sensor value is above 12, I still see “Needs Water” on the card. Any ideas?

Thanks

Edit:

Fix here

1 Like

For info Mi flora or Mi jia temperature sensor can be read also with Mi Flora–>ESP32->MQTT, creating a cheap way to extend the range of your mi flora network.

1 Like

I Just installed hass.io 0.69.1 on a Pi 3.

What do I need to do to get miflora devices working?

I have installed bluetooth.

Neither
sudo hcitool lescan
or
bluetoothctl
run on hass.io
https://www.home-assistant.io/components/sensor.miflora/

This is in configuration.yaml

#miflora stuff
sensor:

  • platform: miflora
    mac: ‘C4:7C:8D:66:46:0B’
    name: Flower care
    force_update: true
    median: 1
    monitored_conditions:
    • moisture
    • light
    • temperature
    • conductivity
    • battery

I’m having same problem, I’m unable to find the mac address because Hassio doesn’t have hcitool or bluetoothctl. Did you use another app to find it?

Yes I just got the mac address by scanning on my laptop. Even with the Mac in place it doesn’t work though.

I guess what I’m unclear on at this point is if Bluetooth LE is broken on Hass.io or if it’s just the Miflora things that are playing up.

mine is working fine with HASS v 0.69.1

1 Like

Thanks Mickael do you use onboard bluetooth or an external dongle?

Could you explain the steps you took to get it working please?

I use a external dongel because i needed better range.

attached external usb dongel.
activated Bluetooth modual in hass
updated the config with miflora and plant-componten
already had the MAC of the dongels.

1 Like

So I had a typo in the Mac address… Doh

Work this with 0.73.1 ?

i bought a sensor and start with it…

i scan it with an other raspi and found him
233%20-%20PuTTY

C4:7C:8D:66:DB:C1 Flower care

and the sensor (Raspi - Hassio)

- platform: miflora
  mac: 'C4:7C:8D:66:DB:C1'
  name: Flower 1
  monitored_conditions:
    - moisture
    - light
    - temperature
    - conductivity
    - battery

but the result is;

have anyone else this problem? - the distance to the flower is 2 meter

I have the same problem it doesn’t seem to work with hassio anymore :frowning:

I get thousands of these in the log…

Updating miflora sensor took longer than the scheduled update interval 0:30

hassio 74.2

2 Likes