diff --git a/configuration.yaml b/configuration.yaml index edfc3e9d..7fd9153a 100644 --- a/configuration.yaml +++ b/configuration.yaml @@ -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 \ No newline at end of file +climate: !include climate.yaml +counter: !include counter.yaml \ No newline at end of file diff --git a/counter.yaml b/counter.yaml new file mode 100644 index 00000000..49192ce9 --- /dev/null +++ b/counter.yaml @@ -0,0 +1,4 @@ +google_maps_api_calls: + initial: 0 + step: 1 + icon: mdi:google-maps \ No newline at end of file diff --git a/group.yaml b/group.yaml index fcd5882f..64b2e1ba 100644 --- a/group.yaml +++ b/group.yaml @@ -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 @@ -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: @@ -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: diff --git a/input_boolean.yaml b/input_boolean.yaml index f7100b45..155ce239 100644 --- a/input_boolean.yaml +++ b/input_boolean.yaml @@ -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 \ No newline at end of file + name: Fußbodenheizung im Wohnzimmer wenn wir gehen + travel_time_home_user_one_update: + icon: mdi:update + name: Update Travel Time Home User One \ No newline at end of file diff --git a/input_number.yaml b/input_number.yaml index 47e6705e..f8c7769b 100644 --- a/input_number.yaml +++ b/input_number.yaml @@ -49,4 +49,7 @@ set_thermostat_when_leaving: icon: mdi:temperature-celsius min: 18 max: 30 - step: 0.5 \ No newline at end of file + step: 0.5 +travel_time_home_user_one_update_interval: + min: 2 + max: 2678400 # 1 month \ No newline at end of file diff --git a/scripts.yaml b/scripts.yaml index e3baa866..8a33b423 100644 --- a/scripts.yaml +++ b/scripts.yaml @@ -91,4 +91,11 @@ goldie_clean: entity_id: switch.goldie_clean - delay: '00:00:05' - service: switch.turn_on - entity_id: switch.goldie_clean \ No newline at end of file + 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 \ No newline at end of file diff --git a/sensor.yaml b/sensor.yaml index 2e83f486..8cc21e51 100644 --- a/sensor.yaml +++ b/sensor.yaml @@ -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 #################################################################