diff --git a/configuration.yaml b/configuration.yaml index 6cd8c5a8..b995cd78 100644 --- a/configuration.yaml +++ b/configuration.yaml @@ -113,7 +113,7 @@ automation: !include automation.yaml script: !include scripts.yaml light: !include light.yaml input_boolean: !include input_boolean.yaml -#input_number: !include input_number.yaml +input_number: !include input_number.yaml notify: !include notify.yaml zone: !include zone.yaml proximity: !include proximity.yaml diff --git a/group.yaml b/group.yaml index e0c2c6d9..31c73e98 100644 --- a/group.yaml +++ b/group.yaml @@ -11,7 +11,7 @@ default_view: - group.occupancy - group.rooms - switch.plug_158d00015694c5 - - group.next_appointment + - calendar.keifingergooglemailcom view_lights: name: Lights @@ -34,6 +34,13 @@ view_media_players: # entities: # - group.studyroom +view_next_appointment: + name: Nächster Termin + view: yes + icon: mdi:calendar + entities: + - group.next_appointment + view_traveltimes: name: Reisezeiten view: yes diff --git a/input_number.yaml b/input_number.yaml index e69de29b..3cb3fb7a 100644 --- a/input_number.yaml +++ b/input_number.yaml @@ -0,0 +1,6 @@ +leave_time_offset: + name: Extra Zeit + initial: 30 + min: 0 + max: 60 + step: 1 \ No newline at end of file diff --git a/sensor.yaml b/sensor.yaml index 108b708e..24aafc63 100644 --- a/sensor.yaml +++ b/sensor.yaml @@ -156,8 +156,7 @@ value_template: "{{ states.calendar.keifingergooglemailcom.attributes.start_time }}" calc_leave_time: value_template: '{{ (as_timestamp(states.calendar.keifingergooglemailcom.attributes.start_time) - states.sensor.travel_time_next_appointment_location.attributes.duration.split(" ")[0] | int *3600 - states.sensor.travel_time_next_appointment_location.attributes.duration.split(" ")[2] | int * 60 )| timestamp_custom("%Y-%m-%d %H:%M") }}' - friendly_name: 'Leave Time' - unit_of_measurement: 'time' + friendly_name: Losfahren ################################################################# ## Sun #################################################################