Skip to content

Commit

Permalink
Added google maps travel time home user one
Browse files Browse the repository at this point in the history
  • Loading branch information
eifinger committed Nov 3, 2018
1 parent fb62424 commit e482c13
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 4 deletions.
3 changes: 2 additions & 1 deletion configuration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -139,4 +139,5 @@ input_select: !include input_select.yaml
input_datetime: !include input_datetime.yaml
binary_sensor: !include binary_sensor.yaml
weather: !include weather.yaml
climate: !include climate.yaml
climate: !include climate.yaml
counter: !include counter.yaml
4 changes: 4 additions & 0 deletions counter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
google_maps_api_calls:
initial: 0
step: 1
icon: mdi:google-maps
10 changes: 10 additions & 0 deletions group.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ view_automation_entities:
- group.automation_presence_entities
- group.automation_entities
- group.current_commit
- counter.google_maps_api_calls
- group.travel_time_home_user_one

view_settings:
name: Einstellungen
Expand Down Expand Up @@ -521,6 +523,13 @@ alarm:
- binary_sensor.workday_today
- binary_sensor.workday_tomorrow

travel_time_home_user_one:
name: Travel Timer Home User One
entities:
- script.travel_time_home_user_one_update
- sensor.travel_time_home_user_one
- input_number.travel_time_home_user_one_update_interval

standards:
name: Standard Einstellungen
entities:
Expand Down Expand Up @@ -586,6 +595,7 @@ app_switches:
- input_boolean.turn_on_bath_thermostat_when_window_closed
- input_boolean.turn_off_bath_thermostat_when_window_open
- input_boolean.set_thermostat_when_leaving
- input_boolean.travel_time_home_user_one_update


notifier_alexa:
Expand Down
5 changes: 4 additions & 1 deletion input_boolean.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,7 @@
name: Fußbodenheizung im Bad anschalten wenn Fenster zu
set_thermostat_when_leaving:
icon: mdi:temperature-celsius
name: Fußbodenheizung im Wohnzimmer wenn wir gehen
name: Fußbodenheizung im Wohnzimmer wenn wir gehen
travel_time_home_user_one_update:
icon: mdi:update
name: Update Travel Time Home User One
5 changes: 4 additions & 1 deletion input_number.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,7 @@ set_thermostat_when_leaving:
icon: mdi:temperature-celsius
min: 18
max: 30
step: 0.5
step: 0.5
travel_time_home_user_one_update_interval:
min: 2
max: 2678400 # 1 month
9 changes: 8 additions & 1 deletion scripts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,11 @@ goldie_clean:
entity_id: switch.goldie_clean
- delay: '00:00:05'
- service: switch.turn_on
entity_id: switch.goldie_clean
entity_id: switch.goldie_clean
#################################################################
## Update Entities
#################################################################
travel_time_home_user_one_update:
sequence:
- service: homeassistant.update_entity
entity_id: sensor.travel_time_home_user_one
7 changes: 7 additions & 0 deletions sensor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,13 @@
destination: sensor.cal_next_appointment_location_google_prepared_user_two
options:
arrival_time: sensor.cal_next_appointment_start_time_user_two
# Travel Time Home User One
- platform: google_travel_time
name: travel_time_home_user_one
api_key: !secret google_maps_api_token
origin: !secret device_user_one
destination: zone.home
scan_interval: 2678400 # 1 month
#################################################################
## Next Appointment
#################################################################
Expand Down

0 comments on commit e482c13

Please sign in to comment.