Xiaomi mi flora sensor/ropot app

app

#1

Xiaomi mi flora sensor/ropot app

This app integrate the Xiaomi mi flora sensor and Xiaomi mi flora ropot into Homey.

image

Links:

https://apps.athom.com/app/com.mi.flora
https://github.com/koktaildotcom/homey-mi-flora

Supported devices

  • Xiaomi mi flora pot
  • Xiaomi mi flora sensor

Known Issues

Known Issues will be posted below.

History

v1.0.0 - 09.04.18

  • first alpha to app store.

v1.0.1 - 10.04.18

  • add documentation
  • revert changes because it breaks the flow card.

v1.0.2 - 17.04.18

  • moved capabilities to drivers because of RoPot missing one.
  • update capability name from fertilizer to nutritions.
  • change tags for capability in card to user preferred language.
  • add tags: report with a human readable report of the status.

v1.0.3 - 17.04.18

  • add missing battery report translation

v1.0.4 - 18.04.18

  • add missing icon
  • add documentation to readme

v1.0.5 - 20.04.18

  • bump 1.0.4

v1.0.6 - 23.04.18

  • bump 1.0.5

v1.0.7 - 27.04.18

  • change trigger min/max with correct translation
  • fixed validation error
  • remove unused try catch
  • add trigger: ‘outside threshold’
  • add documentation
  • bubble up error and throw exception, but before that add new timeout

v2.0.0 - 17.05.18

  • make drivers compatible with com.mi.flora
  • refactoring capabilities
  • add settings explanation for threshold
  • add min/max validation for threshold

v2.0.1 - 18.05.18

  • change app id

v2.0.2 - 18.05.18

  • mark device as broken due to missing capability battery

v2.0.3 - 25.05.18

  • add support for ropot condition cards

v2.0.4 - 25.05.18

  • add information on the pairing screen

v2.0.5 - 25.05.18

  • removed test code

v2.0.6 - 25.05.18

  • resolved merge conflicts

v2.0.7 - 17.08.18

v2.0.8 - 17.08.18

Report Bugs for this App to the Developer

  • Please use the Link in the App Store and follow the community guidelines, the more info provided the faster it can be solved.

Forum Discussion

Initial Discussion created by @Jaxc with info from the community
Ask any Moderator to add/update/correct this Discussion.

Do you like the app? You can buy me a beer! Buy me a beer


#3
1. Install app.
2. Add device(s) to Homey.
3. Configure threshold in the device configuration. (min to max range).
4. Make a flow with one of the cards.

There are some cards globally
Trigger cards
1. Some device sensor is changed.
   * device
   * sensor
   * value

There are some cards device specific
Trigger cards
1. Some device sensor is changed.
   * device
   * sensor
   * value
1. Sensor value is below the configured threshold.
2. Sensor value is above the configured threshold.

Condition cards
1. De plant !{{has not|has}} a correct temperature.
2. De plant !{{has not|has}} a enough sunlight.
3. De plant !{{has not|has}} a enough fertilizer.
4. De plant !{{has not|has}} a enough moisture.

Keep in mind:

  • For an optimal signal strength keep the sensor within a close distance of Homey.
  • Always download the original Xiaomi Mi Flora app and add the devices to the app. This automatically updates the sensor’s firmware to the latest version.

FAQ:

Q: Why can’t the sensor be found by Homey?

A: Check if the sensor is not connected to another bluetooth device. The Xiaomi Mi Flora app for example

Q: Why are the readings from the sensors different than in the Xiaomi Mi Flora app?

A: It is caused by old firmware (2.7.0), try to update the sensors through the Xiaomi Mi Flora app

Example flows:

Send a notification if some plant needs water.


by: @Skorpion

Create a log if the sensors did’t report anymore after 2 hours.


by: @Dijker

Log and send a push notification when a plant needs water.


by: @Robinjo

Log and send a push notification when to replace the battery.


by: @Koktail


#4

Can I tha alpha access? Thanks


#6

The app is currently in beta.
See: https://apps.athom.com/app/com.mi.flora


#7

I have had my 6 Mi Flora sensors up and running on Home Assistant for 4 months now without any problems.

Moving them into Homey has not been a breeze.

It looks like the sensors stop updating to Homey after a couple of hours, which is kinda strange.

I see that others have experienced the same error before, but it seems like it’s been fixed with newer versions of the Mi Flora App…

I, however, still can’t get them to update…

My config is:

Mi Flora Firmware: 3.1.9
Mi Flora App version: 2.0.8
Homey firmware: 1.5.11

Anyone?


#8

That is strange, i’ve been running the app (2.0.x) for 6 months without a problem. The (1.0.x) app was not stable however, at that point i’ve switched the old app for the new app.

Have you tried to remove and add a sensor again?
Have you tried to remove and add the app again?
Are u using the “mi flora app” and connect it to the devices?
Do you have another app in Homey that uses BLE?

Can you send a log to the developer:
Goto: /manager/settings/#homey:manager:apps
Click one time inside the white frame with: Apps installed on Homey
Hover the app: homey-mi-flora with the key and wait until the Send to developer button appear and click on it.


#9

A hard reset (taking out the power) did the magic for me. Tried several times with both installing and uninstalling the sensors and the app, and also “soft” resetting the Homey though the menu.

Thank for your quick reply and awsome app.


#10

Good to hear. Happy to help. :smiley:


#11

I’ve added the example flows from the old forum.


#12

Hmmm… I sent you the logs…

As you can see from the logs, the Homey lost contact with all my Floras after a while, and contact was established again when the Homey rebooted due to an automatic software update.

So something here isn’t quite right.


#13

I’ve looked into the log. At one point is said: “failed connection to peripheral: Error: Peripheral not found.”.
Looks like the connection in interupted, the app tries that 3 times. After that it will resume updating the next device.

Are you sure the device is in range? (max 4 meters)
Do you have another BLE device attached to Homey?
Is your ‘Home Assistant’ still updating the sensors?


#14

The device is in the same place as they were when I was using Home Assistant, and they are all in my living room, so +/- 4 meter.

No… I don’t have any other BLE devices connected, and Home Assistant is not updating the sensors.

The strange thing here is that after every reboot of Homey, they seem to update perfectly for a while, and then fail.


#15

The logging does not show any strange behavior en looks good. I think the delayed event for updating for the next update is lost by Homey somehow. Can you set your update interval to 15 minutes and test it again?


#16

What I’m doing wrong, 2x Mi Flora sensors with same firmware version, both with fresh battery after adding first one, scanning doesn’t find second one. Mobile app off, bluetooth off when scanning.

Homey Firmware Version: 1.5.13-rc.11
Xiaomi Mi Flora v2.0.8 Leendert De Kok


#17

You do nothing wrong, should be found. Have you see the other device the first time? Can you try to scan again and send me a log?


#18

Tried differently, hard reset, taking battery from first one out and etc. And i tried to get log by your manual too but no button appered in Homey deskop App and from web view too. Can’t find some screencast or video in internet about that “log button hack” too

Can you send a log to the developer:
Goto: /manager/settings/#homey:manager:apps
Click one time inside the white frame with: Apps installed on Homey
Hover the app: homey-mi-flora with the key and wait until the Send to developer button appear and click on it.


#19

In google chrome:
Goto: /manager/settings/#homey:manager:apps
Click one time inside the white “frame” with: Apps installed on Homey.
Hover the app: ‘homey-mi-flora’ with the <alt> key and wait until the ‘Send to developer’-button appear and click on it.

Have you seen the sensor im either Homey or the xiaomi mi flora app?


#20

Ah ok, now i see.

89d32eb5-e1cf-408b-95d4-facce1172f73

Yes both sensors correctly displayed in mobile app always when running app.


#21

Hi!

I put the update interval to 15 and everything ran perfectly well for 5 days.

Then suddenly yesterday, all Flora sensors stopped updating approximately at the same time, and around the time when I watered the plants.


#22

Looks like there is nothing wrong in the app. Maybee the name of the device is different and is the device not found. Do you have access to a computer with bluetooth? Which OS are you running? Can you search for BLE devices?