gcobb321 / icloud3_v3

iCloud3 v3, Development Version - This Repo/Version is used for development and testing of new and updated features. It is not the official release of iCloud3 v3, .
MIT License
169 stars 13 forks source link

Feature request: Sensor for minimum distance to Zone (/Home) of all tracked devices #239

Closed klingbing closed 9 months ago

klingbing commented 11 months ago

Hi Gary,

I have some use cases where I could use a sensor that gives me the minimum distance to Home of all tracked icloud3 devices.

I tried doing this Q&D with a Min/Max HA Helper using the in my case two sensor.device_icl3_home_distance sensors and type min. This appears to result in a "Units of measurement do not match for entity sensor.distance_all_to_home" error message in the HA log while unit_of_measurement: km is set for both icl3 home distance sensors. I was able to "fix" this (Q&D) by adding a customize_glob: to my configuration yaml with unit_of_measurement: "km" for the two icl3 sensors and the sensor.distance_all_to_home the Min/Max Helper creates, but there has to be a simpler way of doing this.

gcobb321 commented 11 months ago

Can you explain what you are trying to do. I'm not sure what the minimum distance from a zone (Home) might be used for. Maybe I can then suggest something.

gcobb321 commented 9 months ago

Closing this issue with the release of v3.0