mikey0000 / Mammotion-HA

Home Assistant integration for Luba lawn mower
117 stars 16 forks source link

BLE RSSI reading 0 #15

Open romeoechovictor opened 2 months ago

romeoechovictor commented 2 months ago

Absolutely amazing so far, thank you so much.

Just one thing I noticed was the BLE RSSI is mainly reading zero. Sometimes it does read correctly, but overall it reads zero. I'll attach a screenshot of the wifi & bt history graph. There is data being sent all the time through the BT proxies (you can see the wi-fi rssi data on the graph is consistent).

Any other information I can supply please let me know.

image

jLynx commented 2 months ago

How many BT Proxies are you using?

romeoechovictor commented 2 months ago

How many BT Proxies are you using?

3, if you like I can drop to just 1 but it will only then receive bluetooth when the luba is near the docking station.

jLynx commented 2 months ago

How often does it drop, does it do it while docked? My thought is if it does do it while docked, drop it to one proxy and see if it still does it or not as it's possible it could be the switch between the proxies causing the issue

romeoechovictor commented 2 months ago

You can see the graph here showing the wifi rssi and BT rssi while it's docked. It hasn't moved and would be only coming through on a single proxy at this time. The BT RSSI only intermittently outputs an actual value (circled in red) the majority of the time it's sending 0. The purple graph shows the wifi rssi

It doesn't drop per say, it sends a zero as the BT rssi.

image

jLynx commented 2 months ago

That's really interesting, not sure what is going on there, but we could add a check where if the value is 0 then we don't update it with that value as it's incorrect. Cc @mikey0000

romeoechovictor commented 2 months ago

That might work, but so long as it doesn't join up the values on the HA graphs?
Unless it only transmits then if the rssi level changes? (but the levels don't seem that consistent)

This evening the only captured ble_rssi were at:

22:58, 22:47, 22:37, 21:27, 21:12, 21:01, 20:30, 19:52, 19:07, 18:34, 18:27

I don't see much of a pattern. How often is it updating for the rest of you? The other data seems to update itself at differing intervals depending on the frequency of changing.

So the most updates are coming from WiFi RSSI, Satellites and L2 & L1 Satellites (Co-Viewing)

mikey0000 commented 1 month ago

Is this still an issue now?

TTLucian commented 1 month ago

Same problem here with Yuka robot. Some times it's accurate, sometimes it's zero.

romeoechovictor commented 1 month ago

I think I had a look at the raw data being received via bt. Looks like the data itself is zero so it's not the hass integration itself, looks like the data is actually sending zero to the hass integration. Is this correct? Not sure how you'd fix this if that's the case. Perhaps just don't report or display 0 value as 0 would be a massively strong and therefore unlikely rssi to be received.