tony-fav / tasmota-blerry

GNU General Public License v3.0
96 stars 29 forks source link

Xiaomi Hhcc Flora Monitor #33

Closed DirkTas67 closed 2 years ago

DirkTas67 commented 2 years ago

Hello,

Is this MI Flower monitor sensor supported by blerry_model_ATCmi.be

Regards, Dirk

hurricanepkt commented 2 years ago

I tried to use that configuration to work with that device and did not have success. Give it a try and see if it works for you.

tony-fav commented 2 years ago

Can both of you try dev branch (https://github.com/tony-fav/tasmota-blerry/tree/dev/) noting that setting up and configuration have changed and try the Xiaomi driver instead? I do not have the specific outputs supported yet but provided that device does not use bindkey encryption, you should receive messages in the Berry Scripting Console of the form BLY: Xiaomi: Unsupported Data Type & Length: Type: 0x%X, Length: %d, Data: %s that should allow for further development.

hurricanepkt commented 2 years ago

Done. Hopefully this makes more sense to you than it does to me.

BLY: Xiaomi: Unsupported Data Type & Length: Type: 0x7, Length: 3, Data: bytes('F60000')
BLY: Xiaomi: Unsupported Data Type & Length: Type: 0x8, Length: 1, Data: bytes('00')
BLY: Xiaomi: Unsupported Data Type & Length: Type: 0x7, Length: 3, Data: bytes('F60000')
BLY: Xiaomi: Unsupported Data Type & Length: Type: 0x7, Length: 3, Data: bytes('F60000')
BLY: Xiaomi: Unsupported Data Type & Length: Type: 0x8, Length: 1, Data: bytes('00')
BLY: Xiaomi: Unsupported Data Type & Length: Type: 0x7, Length: 3, Data: bytes('F6B701')
BLY: Xiaomi: Unsupported Data Type & Length: Type: 0x7, Length: 3, Data: bytes('CE0000')
tony-fav commented 2 years ago

So, it looks like the driver knows about all the other data except Type 7 and Type 8 which by looking elsewhere are the Lux sensor and Moisture sensor.

I think this should do the trick: https://github.com/tony-fav/tasmota-blerry/commit/c804d627c37053b05ae0927588b2324585ea6b94

Let me know!

hurricanepkt commented 2 years ago

Looks good.

Looking at the MQTT data after that (edited because i pasted the wrong sensor)

{
  "Model": "Xiaomi",
  "RSSI": -95,
  "Alias": "ble_plant_olive",
  "Lux": 89983,
  "DevID": "HHCCJCY01",
  "Temperature": 23.7,
  "Time": "2022-02-19T17:35:48",
  "MAC": "C47C8D6C82FE",
  "Soil_Moisture": 0
}
tony-fav commented 2 years ago

I'll close this for now, but please let me know if the numbers actually make any sense 😅 Just copying the way the different packets are interpreted in other packages.