Skip to content
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

Driving Time History stats #136

Open
tbeav1 opened this issue Oct 27, 2021 · 3 comments
Open

Driving Time History stats #136

tbeav1 opened this issue Oct 27, 2021 · 3 comments

Comments

@tbeav1
Copy link

tbeav1 commented Oct 27, 2021

Hi there,

Trying to integrate a bunch of your code in to my HA environment. I can't for the life of me figure out how you are getting the data for the binary_sensor.kat_driving & binary_sensor.jeff_driving sensors in your home.yaml

Are you willing to elaborate on where that data is coming from and how it's getting to those sensors?

@welcome
Copy link

welcome bot commented Oct 27, 2021

Thanks for helping make this code better! This is the place to request enhancements, ask questions and other things. You can also ask questions via twitter or https://jeffreystone.net

@thejeffreystone
Copy link
Owner

Oh man, I totally forgot to answer this. I apologize dude.

I was attempting to use templates for binary sensors. I use Life360 for my primary presence tracker, and the device trackers you get with that integration includes some for current speed and one that attempts to determine if the person is driving. I was attempting to use the attributes from the Life360 integration to create a simple binary sensor to say whether someone was driving based on speed to make it easier to use in automations.

But like I said I am not sure it has ever worked and I really haven't played more with it. But Life360 is free if you wanted to try it out.

@BrttClne22
Copy link

If you use the Home Assistant companion app it can expose a "Detected Activity" sensor that may be helpful with this. Looks like the iOS app gives you "Automotive" while Android would give you "in_vehicle". Both platforms appear to expose a certainty level as an attribute that may be helpful as well.

https://companion.home-assistant.io/docs/core/sensors/#activity-sensors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants