jcallaghan / home-assistant-config

My Home Assistant configuration & documentation.
https://www.jcallaghan.com/
MIT License
174 stars 8 forks source link

Car left unlocked reminder šŸ”“šŸ”‘šŸš— #77

Open jcallaghan opened 4 years ago

jcallaghan commented 4 years ago

Objective

I often forget to lock my car. While I have a very connected car I deliberately chose not to have keyless entry due to the high level of car theft in and around my home. The Volvo on call integration for Home Assistant is very extensive and provides me with a lot of information that I have already used to drive automations such as my "you need to leave" reminder.

The Volvo on-call app provides a push notification to say the car is unlocked but I have noticed this is typically when the car has been unlocked and no door has been opened rather than left open (I should test when this happens). Using the integration I plan to create an automation to notify me and avoid me leaving my car open.

Testing

jcallaghan commented 4 years ago

Entity name obfuscation

The Volvo on-call integration #78 creates entities with the vehicle registration in the name. This makes sharing code that uses these entities difficult as I really don't want to share my vehicle registration so openly. Sorry. To avoid this I have mapped the entities I've used so far as !secrets to obfuscate my vehicle registration. I'm going to raise this as an issue as that is far from ideal. If I rename the entities then this could break if the integration updates and reverts the entities.

image

If I continue to use !secrets I need to be really disciplined in ensuring I create new secrets when required. I'd rather see a name/nickname referenced in the config that is used in the entity name.

jcallaghan commented 4 years ago

Actionable alerts

I seem to be able to detect that my vehicle is home and unlocked pretty quickly. This is an example of my unlocking the vehicle, opening and closing and door and not locking the vehicle. Within 3 minutes I get a notification, after 6 minutes I get another notification and Alexa TTS and after 9 minutes the vehicle locks itself.

image

image

image

jcallaghan commented 4 years ago

Shared on Twitter.

jcallaghan commented 4 years ago

Add condition so this only works when the front door is closed. If it is open likelihood is I'm doing something that needs the car open still such as loading or unloading the car.

derekcentrico commented 3 years ago

Did you get this working? If so, possible to share?