I purchased a Xiaomi Mi flower plant sensor that specifically stated that it is the international version, and the supplier confirmed this and I have installed their app and it is in English and working well, but it is not pulling in the sensor values to home assistant. I have the standard Hassio installed, and apparently Bluetooth and the plant sensor should work by default. Here are my configuration files for this sensor:
Thanks for the reply I have been waiting since yesterday for anything to show up, & I have restarted my Raspberry pi 3B+ a few times, but no luck. The plant.yaml is just the way I break things out in Home Assistant, here is an example my configuration.yaml with all the .yaml files located in the main config directory.
ok I wasn’t aware of the plant component.
and I think this is where it’s not set up correctly. Do me a favour and confirm that when clicking on <> under developer tools in the front end, you can find a several sensors starting sensor.back_garden_
If so your miFlora component is set correctly, but your plant isn’t and I believe it should be:
@lolouk44@jimpower Thanks for your help so far, I have commented out the plant monitor, and I am now restarting HA, will wait for 40 min (Default Time) to see if any values appear.
Another question, Is it safe to use these sensors outdoors directly in the rain, or are they not that waterproof?
Stupid question, but are you sure you have the correct MAC Address then?
My MAC address is entered in all caps (no idea whether that makes a difference or not but worth a try)
I used my phone to bind the sensor with the app, and sometimes before it actually renames the sensor to Plantcare it displays the device MAC Address, that is how I got the MAC address. There are no other Bluetooth devices around. I have entered the MAC in all CAPS as displayed on the phone.
Ah I remember I had a similar issue. Remove the device from the Xiaomi app.
For me when using the app, HA would not manage to get the data, as if the app was locking the BT connection with the sensor…
I am working remotely from the office, and not at the sensor. should it not work in this case?, or should I be connected to the sensor via bluetooth with my phone and then just remove the device?
Can’t remember exactly, but I do remember that when the device was paired with the app on my phone it would not show up on HA.
So a test to run later on maybe?
@lolouk44@jimpower Thanks for your help, It was the Mac Address that was wrong, I installed the “SSH & Web Terminal” Add-on in Hass.io and ran the commands “bluetoothctl”, then “scan on” and found that the MAC Address that my phone displayed for the sensor was different to what the Raspberry Pi detected. My phone must have displayed the MAC Address from an old paired device while scanning for the new sensor.