Рет қаралды 39,774
Check out the main channel video with my recent favorite automations: • 10 NEW Home Automation...
Apple Shortcut link to get travel time home and send to Home Assistant
www.icloud.com...
Tesla Custom Integration using HACS
github.com/ala...
Tesla arrive home open garage automation YAML
KZbin won't let me put a "less than" sign in the description so just replace %_lessthan_% with the "less than" sign.
trigger:
platform: template
value_template: "{{state_attr('sensor.arrival_time', 'Minutes to arrival') %_lessthan_% 1.5 }}"
condition:
condition: state
entity_id: device_tracker.destination_location_tracker
state: "Close to home zone "
action:
service: cover.open_cover
data: {}
target:
entity_id: cover.garage_entity
mode: single
I also have one more automation that I didn't mention in the video and that's a force data update on the Tesla Custom Integration. When I put my phone on the charger a boolean is updated in HA. That is triggered from a Apple Shortcut so it will happen instantly. Then when my phone is on the charger and it's away from the house (not connected to WiFi) it does a force update on the Tesla data. I don't know if this is necessary but I thought it couldn't hurt.
trigger:
platform: event
event_data: {}
event_type: reed_phone_charger_on
condition:
condition: state
entity_id: device_tracker.iphone
state: not_home
for:
hours: 0
minutes: 0
seconds: 0
action:
service: button.press
data: {}
target:
entity_id: button.force_data_update
mode: single
FOLLOW ME
Subscribe to Reed's Smart Home: bit.ly/3EulO02
Subscribe to Smart Home Solver: bit.ly/3joO1dZ
Twitter: / smarthomesolver
Instagram: / smarthomesolver
TikTok: / smarthomesolver
---------
MUSIC
Operatic 3 by Vibe Mountain