Skip to content

Commit

Permalink
Automation for updating google maps travel automation Re: #173
Browse files Browse the repository at this point in the history
brianjking committed Mar 7, 2019
1 parent 1b0c00d commit 2feaf71
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions automation/update-google-maps-travel-time-sensor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
- id: update_morning_commute_sensor
alias: "Commute - Update morning commute sensor"
initial_state: 'on'
trigger:
- platform: time_pattern
minutes: '/10'
condition:
- condition: time
after: '09:30:00'
before: '11:30:00'
- condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
action:
- service: homeassistant.update
data:
entity_id: sensor.home_to_kinna_work

- id: update_evening_commute_sensor
alias: "Commute - Update evening commute sensor"
initial_state: 'on'
trigger:
- platform: time_pattern
minutes: '/10'
condition:
- condition: time
after: '17:00:00'
before: '18:30:00'
- condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
action:
- service: homeassistant.update
data:
entity_id: sensor.kinna_work_to_home

0 comments on commit 2feaf71

Please sign in to comment.