Well yesterday the Error, was “Error”, but I changed the code.
Now I have a different issue. Having these values:
first_floor -20db
second_floor -99db (out of reach if I understood correctly)
third_floor Unknown (to take out this state I do have to restart monitor, that’s another question)
then the above value_template gives result
John_second_floor_rssi_raw , ( but it should instead give the John_first_floor_rssi_raw (-20 more probable then -99).
So I thought that maybe I need to put a max (instead of min) in value_template, but it gives the same result …
Or maybe its possible to change the code, to have an mqtt topic for room detection? Basically getting all the rssi value, get the highest (lowest negative number) , and then with that value publish where the phone is? Something like that.
The issue is that you’re not converting these strings to integers before comparing them, so at best you’ll find the first alphabetical string. Try converting to integers first with | int
Make sure to use domain-specific service calls if they’re available to avoid problems. I’ll update the docs, since this recently changed for input_booleans (good catch!)
in previous versions availability was published from the monitor, I have created another pi zero with latest monitor on it and now not getting online from the pi, where can I enable that or what am I missing?
Feature was removed in the most recent version because, simply, Home Assistant wasn’t reliably using it. That said, I’ll probably roll back since 0.88 seems to be slightly more reliable. Sorry for the inconvenience.
Thank you very much for developing this tool!
It seems that RSSI is not sent when PREF_DEVICE_TRACKER_REPORT=true is used.
Are these options mutually exclusive?
Just added the device_tracker on Home Assistant, it seems to work nice! We lose confidence value tho as the message only contains home or not home, but I guess you either want to use one or the other?. Thanks a lot!
For now turning this off as I need to modify all my automations, but I believe using the device_tracker option is the way to go! Thanks once again!