Skip to content

Commit

Permalink
Add Plugin Notification Example (#2712)
Browse files Browse the repository at this point in the history
  • Loading branch information
brombomb authored Jun 24, 2022
1 parent 393d543 commit 9500a2d
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions website/docs/integrations/home_assistant.md
Original file line number Diff line number Diff line change
Expand Up @@ -745,5 +745,24 @@ notify_tesla_windows_open:
data:
variables:
whatsopen: "windows"
- id: plugin-tesla-notify
alias: Notify if Tesla not plugged in at night
trigger:
- platform: time
at: '19:30:00'
condition: and
conditions:
- condition: state
entity_id: sensor.tesla_plugged_in
state: 'false'
action:
- service: notify.mobile_app_pixel_6_pro
data:
title: 🔌 Plug in your car 🚙
message: 'Tesla: {{states(''sensor.tesla_battery_level'')}}% - {{states(''sensor.tesla_ideal_range'')|round(0)}}
km'
initial_state: true
mode: single
```

0 comments on commit 9500a2d

Please sign in to comment.