I’ve never played with proximity sensors, and I’m starting to now. At the moment I’m only concerned with proximity to my home zone. I have the home zone defined in configuration.yaml
:
homeassistant:
name: Home
latitude: !secret latitude
longitude: !secret longitude
elevation: !secret elevation
…and that works fine. I’m wondering, however, whether my proximity sensors aren’t working because home isn’t defined under zone:
. I have attempted to define a home zone under zone:
in configuration.yaml
, but it just creates a duplicate zone (as described in my post here).
My proximity sensors are defined as:
proximity:
person1_home:
ignored_zones:
- zone1
- zone2
- zone3
devices:
- device_tracker.person1_device
tolerance: 10
unit_of_measurement: mi
person2_home:
ignored_zones:
- zone1
- zone2
- zone3
devices:
- device_tracker.person2_device
tolerance: 10
unit_of_measurement: mi
I have tried also to define the zone in each sensor, rather than leaving it to default:
proximity:
person1_home:
zone: home
ignored_zones:
- zone1
- zone2
- zone3
devices:
- device_tracker.person1_device
tolerance: 10
unit_of_measurement: mi
…however, in any case, the sensor values are all “not set” when the device_tracker is not_home. When home, the proximity sensor value is 0, with attribute dir_of_travel
showing stationary and nearest
showing the device_tracker entity… which, to me, says the sensor is doing something, albeit not working correctly.
EDIT: I should say that the Waze Travel Time integration for calculating drive time to my home zone works great. For troubleshooting proximity, I’ve:
- commented out the latitude, longitude, and elevation under
homeassistant:
inconfiguration.yaml
, then restarted… which resulted in no change to the home zone. - defined the reference zone for the second sensor to a different defined zone. That also resulted in not set values… though that device isn’t moving around at the moment:
person2_home:
zone: zone1
ignored_zones:
- zone2
- zone2
devices:
- device_tracker.person2_device
tolerance: 10
unit_of_measurement: mi
Any tips?