eifinger / hass-weenect

Homeassistant integration for weenect
MIT License
6 stars 2 forks source link

Maps and alerts #375

Open rodtrip2 opened 2 weeks ago

rodtrip2 commented 2 weeks ago

Hi! Thank you very much for your work! :-) That would be really awesome if it was possible to get the exact location of the collar. Also, if that was possible to get the alerts (when the pet gets outside of the security zone) that would be even more awesome! Also, it then would be possible to trigger an automation ( for example, make the collar automatically making a sound or vibrate)

eifinger commented 2 weeks ago

Hi, most of what you want is already working.

This integration offers a device_tracker entity for the collar which shows up on the Home Assistant map. I no longer use this product but in the past used a Home Assistant zone to trigger an automation when the device_tracker left the zone.

The last time I had a working subscription I did not see a way to get geofence information. If you can get the the urls to call and the return values as shown in https://github.com/eifinger/hass-weenect/blob/main/tests/const.py I can add a sync of security zones to Home Assistant zones.