Im kind a new to pimatic and am struggling with the rules to send. I’ve tried telegram and its easy to set up, but cant figure out the rules to send the valors of miflora to telegram
-
Xiaomi MiFlora plant sensor
-
@real1 Hi I have bypassed the pimatic in this case. Although I think it can be done as well maybe with more effort.
I am using node red for the Reading and sending part and I am Reading the values of the sensors via a python script. As I have six of them it would be to much effort to put this in rules in pimatic. If you like I can send you more info on the setup.
-
@dynamite ok, please. I read the values of miflora via a py script too i followed @zsiti instructions and created demo1.py, all good in pimatic, and values show ok. Currently waiting for a new sensor and that’s the easy part
My idea was to send values to telegram for example. (I would prefer tweeter, but i think you can forward those messages later). I created the bot and can communicate with pimatic. But if it’s outside pimatic all good for me.
Thanks for the help -
@real1 I have become quite a fan of nodered. It is very easy to install besides your Pimatic. With the plugin of @mwittig you can also make a good connection with pimatic. (If required)
Basically what I did: I have a trigger every 15min I have a small function containing the mac addresses of the sensors and the lower limit of moisture content. These values are pushed into the python script. The result of this script is push into MQTT, influxdb and if the moisture content is below the lower limit a message is sent to telegram. As there is also a twitter plugin (as far as I know), so sending to twitter will not be a problem.
May sound complicated but the actual setup in nodered is quite easy.If I send a command /plant to my telegram bot the procedure above is triggered as well and the outcome of the python script is forwarded to telegram. This giving an actual status of the various plants on my phone.
You can also import the values from Pimatic and do the sending part within nodered.
-
@real1 in nodered it is quite easy tomimport a setup. So after installing I can share you my setup.
-
@dynamite said in Xiaomi MiFlora plant sensor:
@real1 in nodered it is quite easy tomimport a setup. So after installing I can share you my setup.
thanks, i have node red installed and running. sent you a chat message
Edit: Mosquitto is not installing in Stretch, so i dont have mqtt server, already posted here https://github.com/eclipse/mosquitto/issues/529
-
@marvandorth said in Xiaomi MiFlora plant sensor:
how did you guys managed to get those nice icons in the frontend
Text in pimatic is UTF-8 and the standard HTML font already contains a wide range of symbols. See logreader device configuration in post #5 (acronym property). You should be able to copy-paste that. If you save it to a file make sure the editor supports wide characters (on modern operating system Win 10, MacOS, Raspbian this is the normally the default).
See also
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
@marvandorth I went here and copy/paste there are lot’s of them. http://www.1clickemoji.com/
-
So, i got my plant sending tweets if it needs water and to check light, and battery. All working. A big thanks to @dynamite for all the time and patience with me. All done via node red. Up and running. And you can follow my plant now
She is very social. https://twitter.com/plantas_pi
You are the best @dynamite -
@xCite86 said in Xiaomi MiFlora plant sensor:
no. I ignore the error messages…
How can i do this?
Sometimes i have 0 Error-Messages, sometimes 180. I think it depends on the Weather because the distance to the sensor is a little bit to much.
Gruß M. -
Wow, its really hot outside.
The Sensor reads 6553°CBy the way: is it really necessary to have thousands of Emoticons in a Forum?
Gruß M.
-
I now have the Mi Flora working als a BLE device with Pimatic, so without the Python script
See this thread: https://forum.pimatic.org/topic/3925/bluetooth-and-ble-status
-
@rrooggiieerr Thanks, I’ve been looking forward to see a proper pimatic plugin for MiFlora! Keep up the good job, I’ll be testing your solution ASAP!
-
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
-
Hello.
Today i founded the right command (execute “sudo python /home/pi/demo.py”), to open the script every 10 minutes, but i get a error code:
error [pimatic]: rule skriptneustart error executing an action: Error: Command failed: sudo python /home/pi/demo.py
Traceback (most recent call last):
File “/home/pi/demo.py”, line 9, in <module>
from btlewrap import available_backends, BluepyBackend, GatttoolBackend, PygattBackend
ImportError: No module named btlewrap7can sombody please tell me, what is the problem??
Did i have to edit somthing in the demo.py? -
This post is deleted!