Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Values are being displayed decimal place14 should round up or have a fixed decimal of 2 #428

Open
TeckPete opened this issue Nov 8, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@TeckPete
Copy link

TeckPete commented Nov 8, 2024

Describe the bug
Values are being displayed "13. 985315498548 h" should be like 13.98 h rounded or fixed decimal. See attached pictures to see what other card are reporting vs simple-thermostat card is

To Reproduce

  1. Click on '....'
  2. See error

Expected behavior
See the values 13.98 h accuracy_decimals: 2 See attached pictures to see what other card are reporting vs simple-thermostat card is

entity: climate.home
step_size: null
sensors:
  - entity: sensor.hvac_idle_today
  - entity: sensor.hvac_cooling_today
  - entity: sensor.hvac_heating_today
layout:
  mode:
    icons: true
    names: true
    headings: false
sensor:
  - platform: history_stats
    name: Hvac Cooling Today
    unique_id: Hvac Cooling Today
    entity_id: sensor.hvac_action
    state: "cooling"
    type: time
  
    start: "{{ now().replace(hour=0, minute=0,second=0) }}"
    end: "{{ now() }}"

  - platform: history_stats
    name: Hvac Heating Today
    unique_id: HvacHeatingToday
    entity_id: sensor.hvac_action
    state: "heating"
    type: time
    start: "{{ now().replace(hour=0, minute=0,second=0) }}"
    end: "{{ now() }}"
    
    
  - platform: history_stats
    name: Hvac Idle Today
    unique_id: HvacIdleToday
    entity_id: sensor.hvac_action
    state: "idle"
#    type: time
    start: "{{ now().replace(hour=0, minute=0,second=0) }}"
    end: "{{ now() }}"

Screenshots
Always include a screenshot
Capture714
Capture713
Capture712

Browser

  • OS: Mac/Win/iOS/Android win
  • Browser: Chrome/Firefox/Mobile app? both
  • Simple Thermostat version from browser console: latest
  • Home Assistant version: 11
@TeckPete TeckPete added the bug Something isn't working label Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant