demirhanaydin / node-mi-flora

Node package for Xiaomi Mi Flora Plant Sensor
53 stars 21 forks source link

Raspberry and Homebridge #1

Open marcotini opened 7 years ago

marcotini commented 7 years ago

Is it possibile to make this repo compatible with bluetooth of Raspberry Pi 3 and Homebridge?

demirhanaydin commented 7 years ago

The library works with raspberry pi 3's bluetooth (I've used it with mine) but I have no experience with Homebridge before. I'll put your suggestion to the enhancement list.

MrRobotoGit commented 7 years ago
astrojetson8 commented 7 years ago

+2 for Homebridge plugin

marcotini commented 7 years ago

Ok I did it 🥇

img_3763

MrRobotoGit commented 7 years ago

The code?

Il giorno 19 apr 2017, alle ore 12:10, Marco Tini notifications@github.com ha scritto:

Ok I did it 🥇

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

astrojetson8 commented 7 years ago

@marcotini how did you manage that?

astrojetson8 commented 7 years ago

@marcotini any update on how you got it work? @demirhanaydin do you plan to update this for homebridge?

demirhanaydin commented 7 years ago

I have no intention to work on homebridge plugin right now but I'll be happy to review any pull request related with homebridge integration.

astrojetson8 commented 7 years ago

@demirhanaydin thanks for the update hopefully @marcotini can share what he has done with us.

marcotini commented 7 years ago

@astrojetson8 I've used Domoticz with two script bash with eDomoticz homebridge plugin. If you are interest I can upload the code!

astrojetson8 commented 7 years ago

@marcotini thanks for the update. it would be great if you can...

marcotini commented 7 years ago

@astrojetson8 to make it simple (now I don't have time to do a tutorial) install Homebridge, Domoticz and then the plugin eDomoticz.

Clone this https://github.com/marcotini/miflora/ inside /home/domoticz/scripts and create virtual sensor (button and the 5 of the flora, temp, lux etc). Edit the demo.py with your MAC and the IDX of the sensor that you have create with Domoticz and than make the cron of flora.sh every 30 min.

I hope this can help.

astrojetson8 commented 7 years ago

@marcotini thanks! actually i got it to work too but i used home assistant instead. I'll checkout your code as well.

marcotini commented 7 years ago

IMHO Home Assistant is bad and is not working like it should.

fredericfdran commented 7 years ago

Someone actually created a plugin https://github.com/lucavb/homebridge-mi-flora. Looks like it needs some work but that should get you started.

astrojetson8 commented 7 years ago

@fredericfdran thanks, checking with him.

honkmaster commented 6 years ago

You could also check out mi-flower-care, an advanced fork.