Xiaomi Mi Plants Monitor Flower

just got one for this exact purpose. testing now

No HA is pulling the data from the sensor, and you can customize how often you want to update

not encouraging

17-01-12 09:04:54 homeassistant.components.sensor: Setting up sensor.miflora
17-01-12 09:04:54 homeassistant.core: Bus:Handling <Event state_changed[L]: new_state=<state sensor.flower_1_conductivity=unknown; unit_of_measurement=µS/cm, friendly_name=Flower 1 Conductivity @ 2017-01-12T09:04:54.478818+01:00>, entity_id=sensor.flower_1_conductivity, old_state=None>
17-01-12 09:04:54 homeassistant.core: Bus:Handling <Event state_changed[L]: new_state=<state sensor.flower_1_moisture=unknown; unit_of_measurement=%, friendly_name=Flower 1 Moisture @ 2017-01-12T09:04:54.481934+01:00>, entity_id=sensor.flower_1_moisture, old_state=None>
17-01-12 09:04:54 homeassistant.core: Bus:Handling <Event state_changed[L]: new_state=<state sensor.flower_1_light_intensity=unknown; unit_of_measurement=lux, friendly_name=Flower 1 Light intensity @ 2017-01-12T09:04:54.486887+01:00>, entity_id=sensor.flower_1_light_intensity, old_state=None>
17-01-12 09:04:54 homeassistant.core: Bus:Handling <Event state_changed[L]: new_state=<state sensor.flower_1_temperature=unknown; unit_of_measurement=°C, friendly_name=Flower 1 Temperature @ 2017-01-12T09:04:54.491030+01:00>, entity_id=sensor.flower_1_temperature, old_state=None>
17-01-12 09:04:54 homeassistant.core: Bus:Handling <Event state_changed[L]: new_state=<state sensor.flower_1_battery=unknown; unit_of_measurement=%, friendly_name=Flower 1 Battery @ 2017-01-12T09:04:54.494097+01:00>, entity_id=sensor.flower_1_battery, old_state=None>
17-01-12 09:04:54 homeassistant.core: Bus:Handling <Event state_changed[L]: new_state=<state sensor.yr_symbol=4; entity_picture=//api.met.no/weatherapi/weathericon/1.1/?symbol=4;content_type=image/png, attribution=Weather forecast from yr.no, delivered by the Norwegian Meteorological Institute and the NRK., friendly_name=yr Symbol @ 2017-01-12T09:04:54.934490+01:00>, entity_id=sensor.yr_symbol, old_state=<state sensor.yr_symbol=unknown; entity_picture=//api.met.no/weatherapi/weathericon/1.1/?symbol=None;content_type=image/png, attribution=Weather forecast from yr.no, delivered by the Norwegian Meteorological Institute and the NRK., friendly_name=yr Symbol @ 2017-01-12T09:04:53.943130+01:00>>

It may take some minutes after you have started hass, before new values show up.

very cool idea.

I am more lost then you, and I will have additional problem that some pi3 will have to run on wifi and not ethernet.

p.s. in addition, if possible, is good to have redundancy for HASS instances

not sure about the other values, but the temperature data is not correct …

You sure your not living on the sun? :wink:

2 Likes

I am getting similar results to @anon35356645. The first time the device was connected to HA the results were correct, however, any subsequent results have been way too high.

The only one that is correct is the battery percentage.

I’ve set median to ‘3’, but can see from the logs each time HA queries the device it returns these high values.

And I can confirm, I am not living on the Sun :slight_smile:

are you sure? :wink:

No, it’s 700 degrees colder :smile:

@anon35356645

I have nine of these sensors set up around my house. I sometimes get the high numbers you guys are reporting as well, so I did some investigating.

I can say from my testing, that the abnormal results seem to be directly correlated to their range from the base station. I have four plants pretty close to the Pi running HASS - they have never shown crazy high results. Meanwhile, the plants furthest away seem to have this issue even with median: 5.

My shortest distances are from 1-2m with direct line of sight.

Longest distance is roughly 8m through a wall. (I know this exceeds the expected range, still testing to see what I can get away with).

To those of you struggling with temperatures north of 4000 degrees, I would suggest temporarily relocating the sensor closer to your base station to see if the problem clears up.

Mine is 20 cm from my pi3 with Bluetooth

One of mine is about 5m away and I only once a week get a wrong value.
The closer once almost never give a wrong value.

Mine works perfectly. Pi is within 3 feet

I have 4, 1 is about 8m away with two asbestos walls between, the other 3 are between 1 and 3m away from my PI all have never given a bad reading.

So I’ve found that if I turn the bluetooth service off and then back on again, the first time the values are read they are correct, but then for any subsequent reads the return values are too high.

   hciconfig hci0 down
   hciconfig hci0 up
   python3 demo.py

Tested with a short distance and get the same results.

The battery percentage is always correct funnily enough though. Crossed checked using the Flower Care app and that is returning the correct values.

Firmware version is 2.8.6 so I don’t know whether this may be leading to the incorrect data? Is it correctly for anyone else on this version?

UPDATE

I’m also running homebridge with the ‘homebridge-bluetooth’ plugin, disabling this plugin while running homebridge seems to have resolved the incorrect values so far - will monitor to ensure it’s consistent (fingers crossed)

Does anyone know whether I would also see a significant increase in battery drain having it linked with home assistant? I’ve found the battery has dropped around 8% in 2 days of usage with HA, where when I was using only my phone previously the battery dropped around 2% in a week.

Do i understand correctly i will not be able to run room-assistance (BLE tracker) and xiaomi miflower in HA at the same time as they will be locking the BT adapter on RPi3?

Hi,

I have around 10 of these devices and have now successfully integrated them all with Home assistant.

I have a problem now of not knowing which one is which. As HA reads average data, I have tried to tie up each sensor by looking at readings on the flower app and then mapping them to HA, however this is a nightmare.

Is there any way I can “find” or “Ping” the device in HA (similar to the find device in the app)

I can’t see a mac address printed on the device anywhere, and the app does not give up the mac address either…

Any help here would be greatly appreciated…

Thanks