New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xiaomi mi flower sensor #100

Closed
SaulGoodman1337 opened this Issue Sep 9, 2017 · 15 comments

Comments

Projects
None yet
4 participants
@SaulGoodman1337
Copy link

SaulGoodman1337 commented Sep 9, 2017

Hi,

Is it hard to implement this Device and feature in general ?
My idea is to pair the sensor with openmqtt and read out the values from sensor and push it to mqtt.

Here is a example based on python:
https://github.com/marcelrv/miflora

@1technophile

This comment has been minimized.

Copy link
Owner

1technophile commented Sep 9, 2017

Hi,
You mean to implement xiaomi flora reading with hm10 ?

@SaulGoodman1337

This comment has been minimized.

Copy link
Author

SaulGoodman1337 commented Sep 10, 2017

Hi,
exactly. is this feature makeable?

@1technophile

This comment has been minimized.

Copy link
Owner

1technophile commented Sep 10, 2017

In theory yes, it s even a good idea

@xstrex

This comment has been minimized.

Copy link

xstrex commented Sep 28, 2017

+1

@1technophile

This comment has been minimized.

Copy link
Owner

1technophile commented Oct 14, 2017

Thanks to Martin Currey advice, by updating the firmware to V601 I now have access to a new command "AT+DISA?" which returns hex values and identify the mi flora by its name.
It is progressing!

@SaulGoodman1337

This comment has been minimized.

Copy link
Author

SaulGoodman1337 commented Oct 16, 2017

Sounds great !
Can i help you with testing ?

@1technophile

This comment has been minimized.

Copy link
Owner

1technophile commented Oct 22, 2017

Hello, yes it will help. I can confirm now that it is feasible. I need to rewrite the program to process hexa instead of ascii. I hope to publish something next week

@1technophile 1technophile added this to the V0.5 milestone Oct 22, 2017

1technophile added a commit that referenced this issue Oct 26, 2017

Integration of mi flora sensor
#100 mi flora beta integration
not integrated per default, so as to enable mi flora reading you must
comment ZgatewayBT_stable into config_BT.h
@1technophile

This comment has been minimized.

Copy link
Owner

1technophile commented Oct 26, 2017

It's been a long work but here is a beta integration of mi flora, note that:

  • so as to enable mi flora reading you must comment ZgatewayBT_stable into config_BT.h
  • you need at least v601 of hm10 firmware

Waiting for your feedback

@1technophile

This comment has been minimized.

Copy link
Owner

1technophile commented Nov 3, 2017

Hello, does someone tested this beta integration ?

@SaulGoodman1337

This comment has been minimized.

Copy link
Author

SaulGoodman1337 commented Nov 3, 2017

@1technophile

This comment has been minimized.

Copy link
Owner

1technophile commented Nov 6, 2017

Some explanations of what has been done to integrate this:
https://1technophile.blogspot.fr/2017/11/mi-flora-integration-to-openmqttgateway.html

@rvdvoort

This comment has been minimized.

Copy link

rvdvoort commented Nov 23, 2017

I tried the code for the mi-flora integration and it seems to work. Unfortunately the gateway is also reporting the BLE adresses of all other devices closeby. Is it possible to only read the data of a specific mi flora by specifying the BLE mac-adress (and interval between 2 polls).

@1technophile

This comment has been minimized.

Copy link
Owner

1technophile commented Nov 23, 2017

Hello,
@rvdvoort
You can specify the interval by changing TimeBtw_Read into config_BT.h.
The other mac adresses are published for people presence detection.
Maybe the filter of mac adresses should be placed on the home controller , what do you think ?

Thanks for the feedback

1technophile added a commit that referenced this issue Nov 24, 2017

@1technophile

This comment has been minimized.

Copy link
Owner

1technophile commented Nov 24, 2017

@rvdvoort I close the issue to release the new version.
Don't hesitate to give your answer to the gitter tchat room

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment