@mwittig thanks a lot for looking into this and for bearing with a total newbie.
However, it seems like the problem has now magically vanished - after I changed the power supply. Maybe the old one was producing interferences or was unstable in a way that affected the comm chip of the RPi0W (I heard they are much more sensitive than the CPU). Thanks again, Beat
-
Bluetooth and BLE status
-
@bludin said in Bluetooth and BLE status:
However, it seems like the problem has now magically vanished - after I changed the power supply. Maybe the old one was producing interferences or was unstable in a way that affected the comm chip of the RPi0W (I heard they are much more sensitive than the CPU).
Thanks for the feedback. Power supplies frequently cause problems. It is great you found the error cause.
EDIT: A side note as you said you have 5 Mi Flora Sensors. Apparently, the Raspberry BLE tranceiver (like many others) can only handle up to 5 simultaneous connections. Other sources report it can handle up to 7 devices. If the limit is exceeded you will likely see all sorts of error messages. I am not sure this has been stated earlier. So I thought it might good to know just I case you’re planning to add more devices.
https://github.com/noble/noble#maximum-simultaneous-connections
https://stackoverflow.com/questions/33488294/maximum-no-of-ble-connection-using-bluez?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa
https://www.raspberrypi.org/forums/viewtopic.php?t=172897
https://github.com/noble/noble/issues/387"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
Hey guys, it’s been a long time without being active.
I’m happy there’s a native soultion for the mi-flora now, but i can’t get it to autodetect my devices. I couldn’t figure out what’s wrong, i even tried a fresh raspbian / pimatic install to find my sensors by autodetect.
when scanning it shows:
pimatic-ble: Scanning for BLE devices pimatic-ble-mi-flora: Scanning for Mi Flora plant sensors
But nothing appears.
Scanning in terminal shows the following:
pi@home-pi:~ $ sudo hcitool lescan LE Scan ... C4:7C:8D:63:37:85 (unknown) C4:7C:8D:63:37:85 Flower care C4:7C:8D:63:37:85 (unknown) C4:7C:8D:63:37:85 Flower care C4:7C:8D:63:37:85 (unknown) C4:7C:8D:63:37:85 Flower care
Which seems like recognizing the mi-flora devices …
This is my new config (no devices etc set up…):
https://pastebin.com/DAjuJm8HAny clue what i’m doing wrong?
Thanks in advance,
Chris -
I´m not sure if the autoscan is working.
Put theC4:7C:8D:63:37:85
in your config
Like:{ "id": "mi-flora", "class": "MiFloraDevice", "name": "Plant", "uuid": "c47c8d633785", "interval": 60000 }
-
@michael-rudek
Thanks a lot! I tried this before reinstalling the whole system and it didn’t work. Now it does!Greetings.
-
Hey all i`m new here got a question…
Does someone have a nice tut to help me started using bluetooth module with my nano??
And the wire connections where can i find those? did search the internet for hours but i can`t find anything good???thankss
-
Hi.
I have also problems with the installation.
Wich Plugins did i need? Is it currently ble 0.9.3, ble-itag 0.0.6, log-reader 0.9.2, and ble-mi-flora 0.0.9?I find 2 sensor devices at Settings/Device/DiscoveryDevices, but i have only installed 1 sensor.
My english is not the best, so i dont know what is to do at the next time. I read somthing, that i have to start a Document, wich is named demo.py
How should i name the rule, that it works ok? I saved the shell command in demo.py, but i can not write the command in the rule…
and after this step, i should log the dates?Thanks for your help
-
does this plugin still work?
got this errorhttps://github.com/rrooggiieerr/pimatic-ble-mi-flora/issues/4
-
Hi, i assume you’re using node 8 or 10. Pimatic-ble is not node 8+ compatible.
And because of that pimatic-ble-mi-flora is also not node 8/10 compatible.With some adjustments, it can be adapted for node 8+. If you are willing to test it, i can provide the changes.
-
Hi there,
I have two raspberrys (one Rpi3 and one Rpi4) running pimatic. The situation I’m going to describe is happening only in the RPi3. In the RPi4 the plugin is working fine.
I’m working with the plugins ble and ble-mi-flora to read from Xiaomi Mi Flora plant sensors.
All the devices (plant sensors) I’m using are well initialised and if I reboot pimatic I get fresh measurements from all of them. However, they won’t ever measure again regardless the time I wait and the interval I set.
By the way, in the same raspi I have Netatmo plugin which is refreshing periodically just fine.
Any idea of why is this happening?
Thanks in advance for any help.
-
@bertreb said in Bluetooth and BLE status:
Hi, i assume you’re using node 8 or 10. Pimatic-ble is not node 8+ compatible.
And because of that pimatic-ble-mi-flora is also not node 8/10 compatible.With some adjustments, it can be adapted for node 8+. If you are willing to test it, i can provide the changes.
I see that now there are a couple of plugins ble2 and ble2-mi-flora that clame to work with node 8, although I didn’t try them.
-
@scobby said in Bluetooth and BLE status:
does this plugin still work?
got this errorhttps://github.com/rrooggiieerr/pimatic-ble-mi-flora/issues/4
Hi, i made the ble2 and bl2-mi-flora version as a possible solution for this problem.
If you are using node 8 or 10 it could also solve your problem.
I can’t test it, but if you want please use/test it and let me know the result. -
Hi! Original developer of the BLE plugins here. I’m no longer using Pimatic, still on my world trip. If anyone likes to improve my developments and become a co-maintainer be my guest, I can hand you over the github repository
-
Hi @rrooggiieerr you can make me a co-maintainer of ble and ble-mi-flora.
-
@bertreb if you’re cool with it I can make you co maintainer of all my Pimatic developments on github
-
@jorge-martínez said in Bluetooth and BLE status:
Hi there,
I have two raspberrys (one Rpi3 and one Rpi4) running pimatic. The situation I’m going to describe is happening only in the RPi3. In the RPi4 the plugin is working fine.
I’m working with the plugins ble and ble-mi-flora to read from Xiaomi Mi Flora plant sensors.
All the devices (plant sensors) I’m using are well initialised and if I reboot pimatic I get fresh measurements from all of them. However, they won’t ever measure again regardless the time I wait and the interval I set.
By the way, in the same raspi I have Netatmo plugin which is refreshing periodically just fine.
Any idea of why is this happening?
Thanks in advance for any help.Just in case somebody else has the same problem I think I found the solution (it is working for now). The issue was not in the BLE plugin but on the BLE-MI-FLORA one. I’ve uninstalled completely BLE-MI-FLORA, reboot pimatic and installed it again and so far is working.
-
@jorge-martínez said in Bluetooth and BLE status:
Just in case somebody else has the same problem I think I found the solution (it is working for now). The issue was not in the BLE plugin but on the BLE-MI-FLORA one. I’ve uninstalled completely BLE-MI-FLORA, reboot pimatic and installed it again and so far is working.
False alarm. After 4/5 measurements, it stops again and I have to reboot plugins to get another single fresh measurement… Any idea on how to solve it?
-
You can try the the ble2 and ble2-mi-flore plugins. I made them to make the 2 plugins node 8+ compatible. You are the first to test (i don’t own any ble devices)
If it works i can update the original ble plugins
-
@bertreb said in Bluetooth and BLE status:
You can try the the ble2 and ble2-mi-flore plugins. I made them to make the 2 plugins node 8+ compatible. You are the first to test (i don’t own any ble devices)
If it works i can update the original ble plugins
I’m trying but when installing ble2 and activating it, it won’t load (i.e. I see it as “activated” but not as “loaded” as I see with ble one. Same happens with ble2-mi-flora.