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

Rounding options for more than just forecast #101

Closed
Dhtjf opened this issue Feb 17, 2024 · 1 comment · Fixed by #108
Closed

Rounding options for more than just forecast #101

Dhtjf opened this issue Feb 17, 2024 · 1 comment · Fixed by #108
Assignees
Labels
enhancement New feature or request

Comments

@Dhtjf
Copy link

Dhtjf commented Feb 17, 2024

First, this is an absolutely awesome card, so thank you.

Is your feature request related to a problem? Please describe.
When inputting my local sensors from my Tempest weather station (built in integration) for the current condition entities, I'm getting all available digits. It does not matter if I change the precision shown on the entity.

For example, see current temperature, feels like, and pressure:
image

Versus the precision settings, for example, feels like:
image

My card yaml:

type: custom:weather-chart-card
entity: weather.forecast_xxxxxx
show_main: true
show_temperature: true
show_current_condition: true
show_attributes: true
show_time: false
show_day: false
show_date: false
show_humidity: true
show_pressure: true
show_wind_direction: true
show_wind_speed: true
show_sun: true
show_feels_like: true
icons_size: 25
animated_icons: false
icon_style: style1
forecast:
  precipitation_type: rainfall
  labels_font_size: '11'
  precip_bar_size: '100'
  style: style2
  show_wind_forecast: true
  condition_icons: true
  round_temp: false
  type: daily
  use_12hour_format: false
units:
  pressure: ''
  speed: ''
temp: sensor.st_00123271_temperature
feels_like: sensor.st_00123271_feels_like
press: sensor.st_00123271_air_pressure
humid: sensor.st_00123271_humidity
uv: sensor.st_00123271_uv_index
winddir: sensor.st_00123271_wind_direction_average
windspeed: sensor.st_00123271_wind_speed_average

Describe the solution you'd like
Ability to either set precision directly in the card or utilize the precision set within the entity settings. The card did not appear to accept a template entry. Of course, a workaround is to make a helper of each entity with a template that performs the rounding.

@Dhtjf Dhtjf added the enhancement New feature or request label Feb 17, 2024
@mlamberts78
Copy link
Owner

Rounding for temperature is implemented in the latest version v2.3.0, but seems that it’s not working for alternative entities?
Will have a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants