-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Unknown state even after 0.7.4 update #474
Comments
Hello, same in here. |
Unfortunately I do have the same experience, also with 0.7.4. |
Hi @Tvojm100, thanks for your report and for including the diagnostics - it makes things a lot easier. The main issue is that you have The signal that the kitchen is getting from your phone is also fairly weak, in the -90dbm range. This probably indicates that your phone is sending a fairly weak signal (it could also/instead be that your proxy's antenna is not very sensitive, or might be in a position where the signal is blocked or the antenna is facing a sub-optimal direction). If you're using the HA companion app to send the iBeacon advertisements you might want to try setting the transmit power to Medium (Low is the default) as this seems to give much better results on many phones. I usually recommend 3Hz for the advertising rate. After you set the power to medium you will get shorter distance readings in Bermuda, so you might want to change the ref_power in Bermuda back up a bit to compensate for that. Your proxy configuration looks quite healthy, so no problems there, I think - just the max radius and the transmit power on your phone should hopefully improve things a lot there. |
That could be a similar issue, in which case setting the HA companion app transmit power to Medium might resolve or improve the issue.
Are you saying that it reports a distance but not an Area? I might be having trouble understanding what you are explaining here. If you don't find the transmit power to be the issue, could you upload the result of a "download diagnostics"? |
@oguzcav can you try the same and let me know how you go? Similarly, if it doesn't fix it, please upload a diagnostics. |
Thanks for the reply. I did have the area distance set to 20m. But changed it to different values for testing. The same was happening at greater set distances too. For me, the whole setup can work very well for half hour to a couple of hours. But then all of a sudden it getting stuck on unknown without changing anything (including the physical environment). Those kitchen readings were with me pretty much standing still in the same place. I get this on other scanners too, where being in the same place for 5 minutes, the distance/area state would go from a valid area to unknown. Also the distance would randomly fluctuate by 2-7 metres. I did increase the BLE values in HA companion app and increased them by 'one step'. I'll try and increase it further. Thanks. |
Those kitchen readings were taken with the max radius at 5m. If it's still happening at 20m please send another diagnostics, but I'd probably suggest setting it to 100m first.
This is pretty normal for rssi based distance readings. |
Thanks I'll give that a go. A couple of quick questions if I may:
|
The global settings apply to the entire system, so to all devices. The reason you select a device and a scanner is that those are like your ruler, you use those two to work out what setting works, and apply that to all devices.
It's just indicating the sequence of data received, newest to oldest, it's just counting out the results.
The distance is estimated, but the rssi is "measured". Those rssi values are what the proxy recorded the signal strength as, so nothing you do will change that (they will change as new readings come in, and will change as you move the device and signals randomly come and go, but each reading is the "actual" reading at the time it was taken). When you enter a new If the device is actually, physically 1 metre away, then entering an rssi value from the list into the Does that make sense? |
Hello, Sorry for my late reply. Somehow it is solved at this time. But i set global max_area_radius to 5 metres regardless, even though it is working. I'm happy at this time. Thank you for being there for us. |
No worries @oguzcav, very glad you have it working, and you're welcome! |
I tried (setting to low instead of ultralow), and although when the beacon is picked up and reported near one node, it stays online for longer (30 seconds instead of 1) but the results stay the same: after that short time, the area is reported as unknown again. After multiple minutes it reports back in (my phone didn't move and wasn't used) and then disconnect within a minute.
No; When it is connected, it both reports area and distance. So no problem there. When it's not picking up my phone, it both reports as 'Unknown'.
config_entry-bermuda-01JHTRQH9WTVKP0QB5M0SJSAXW.json The only beacon I use to test is: iBeacon:c560edaebe434d509cfa887db1c873e7_100_1 |
Thanks for the diagnostics, @FvanEgmond. It does look like a signal-strength issue. The only scanner that is seeing your phone at all is the study proxy, and the rssi readings are all very weak (about -100dbm is usually about the limit for what they can pick up). Here's the most recent history of readings: "hist_rssi": [
-97,
-98,
-97,
-102,
-98,
-100,
-99,
-97,
-94,
-96
], The hist_interval shows how many seconds have elapsed between each detected advertisement (at a max resolution of 1 second, which is how often Bermuda checks the backend). For an esphome proxy we should expect mostly 1s and the odd 2s interval for a device that is nearby: "hist_interval": [
18.999663764843717,
0.9999823020771146,
1.9999646060168743,
61.00292024598457,
58.99895543209277,
4.003929098835215,
54.99102608906105,
6.003893650136888,
5.999893717933446,
33.999397662933916
] We can tell that your studio proxy is working OK though, because it's receiving advertisements for a microsoft device quite consistently (mac address 1c:fc....:63) although it hasn't been present there for a while (or its address has changed): "hist_rssi": [
-70,
-73,
-67,
-66,
-78,
-71,
-66,
-76,
-69,
-67
], "hist_interval": [
0.9999821039382368,
0.9999821030069143,
0.9999821030069143,
0.9999821039382368,
0.9999821041710675,
0.9999821039382368,
0.9999821039382368,
0.9999821039382368,
0.9999821041710675,
0.9999821039382368
],
Yes, Low does not seem to give good results, so I suggest using Medium, and if that doesn't work, High. I wonder if the companion app recently changed their default xmit power? It's come up quite a lot lately. If you enable a few other devices it might give you some good data to compare against, such as some of the Sonos devices - that will let you more easily determine if the issue is the overall system or a single device. |
Hi
I thought that changing the 'transmitting power' and 'advertise mode' in HA companion app - BLE settings helped with my unknown state issue. But after monitoring for a couple of days, I still seem to get it.
I am attaching a screenshot and diagnostics as suggested in another post.
Any advice/help would be appreciated.
config_entry-bermuda-01JKVA62KMGXAW98XPVCB95TCZ.json
The text was updated successfully, but these errors were encountered: