Could someone please tell me what i have done wrong total_steps is how many steps i have done for the day with raw output for example is 6234 and daily_steps_goal is 8200 i would get a raw answer of 62.34 which is incorrect as it should be 76.02
I know i have a float 10000 but i thought it was just a fallback
template:
- sensor:
- name: "Steps Goal Completion"
unit_of_measurement: "%"
state: >
{% set steps = states('sensor.total_steps') | float(0) %}
{% set goal = states('sensor.daily_steps_goal') | float(10000) %}
{{ ((steps / goal) * 100) | round(2) }}