Skip to content

Commit

Permalink
Wrong multiplier
Browse files Browse the repository at this point in the history
  • Loading branch information
eifinger committed Jun 30, 2018
1 parent 013400e commit 6a286d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sensor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
friendly_name: Um
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 * 360 )| timestamp_custom("%Y-%m-%d %H:%M") }}'
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'
#################################################################
Expand Down

0 comments on commit 6a286d8

Please sign in to comment.