Skip to content

Commit

Permalink
Move tesla automations to tesla fleet.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeodr committed Nov 9, 2024
1 parent e690002 commit ef3da86
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions packages/tesla.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,15 @@ automation:
id: tesla_sentry_mode_home_reminder
trigger:
- platform: state
entity_id: sensor.tesla_state
from: "driving"
entity_id: device_tracker.sparky_location
to: "home"
for:
minutes: 15
condition:
- condition: state
entity_id: device_tracker.tesla_location
state: "home"
- condition: state
entity_id:
- binary_sensor.tesla_plugged_in
- binary_sensor.tesla_sentry_mode
- binary_sensor.sparky_charge_cable
- switch.sparky_sentry_mode
state: "off"
action:
- service: notify.mobile_app_michaels_iphone
Expand All @@ -28,13 +25,17 @@ automation:
id: tesla_disable_wifi_in_driveway
trigger:
- platform: state
entity_id: binary_sensor.tesla_plugged_in
entity_id: binary_sensor.sparky_charge_cable
to: "on"
id: plugged_in
- platform: state
entity_id: binary_sensor.tesla_plugged_in
entity_id: binary_sensor.sparky_charge_cable
to: "off"
id: unplugged
condition:
- condition: state
entity_id: device_tracker.sparky_location
state: "home"
action:
- choose:
- conditions:
Expand Down

0 comments on commit ef3da86

Please sign in to comment.