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

Tile state_content attributes ignore precision settings for sub-entities #23526

Open
4 tasks done
arcalulu opened this issue Dec 31, 2024 · 0 comments
Open
4 tasks done

Comments

@arcalulu
Copy link

Checklist

  • I have updated to the latest available Home Assistant version.
  • I have cleared the cache of my browser.
  • I have tried a different browser to see if it is related to my browser.
  • I have tried reproducing the issue in safe mode to rule out problems with unsupported custom resources.

Describe the issue you are experiencing

I have a SONOFF SNZB02 device that provides two entities through MQTT, one for temperature and the other for humidity.

1

I have defined the desired precision for each of these entities.

2

3

Each entity has, in its attributes, the temperature and humidity values from the sensor.

6

On a tile, if I only display the state of the entity, the precision format is correctly applied and displayed.

4

However, on the same tile, if I want to display both the temperature and humidity attribute values at the same time, the precision format does not apply to the attributes.

5

How can I display on a single tile the temperature and humidity values from the same sensor, with distinct precision formats for each value?
Thank you for your help.

By the way, thank you for your splendid work.

Describe the behavior you expected

I would like to display my tile this way:
7

Eventually, I would like to have a differentiated "more-info" depending on the attribute I click on (if I click on temperature, I get the temperature graph, and the same for humidity).

Steps to reproduce the issue

  1. Add SNZB02 throught MQTT
  2. Add tile
  3. Try to add 2 attributes with differentiated precision.
    ...

What version of Home Assistant Core has the issue?

2024.12.5

What was the last working version of Home Assistant Core?

No response

In which browser are you experiencing the issue with?

Firefox 133.0.3 (64bits)

Which operating system are you using to run this browser?

Windows 11

State of relevant entities

entity: sensor.sonde_temp_hygro_04_humidity
state: 54.72

***attributes***
state_class: measurement
battery: 67.5
humidity: 53.64
last_seen: 2024-12-31T16:36:26.625Z
linkquality: 175
temperature: 20.79
voltage: 2900
unit_of_measurement: °C
device_class: temperature
friendly_name: Sonde_Temp_Hygro_04 Température

Problem-relevant frontend configuration

type: grid
cards:
  - type: tile
    entity: sensor.sonde_temp_hygro_04_temperature
    grid_options:
      columns: full
  - type: tile
    entity: sensor.sonde_temp_hygro_04_humidity
    grid_options:
      columns: full
  - type: tile
    entity: sensor.sonde_temp_hygro_04_temperature
    state_content:
      - state
      - temperature
      - humidity
    grid_options:
      columns: full
  - type: tile
    entity: sensor.sonde_temp_hygro_04_humidity
    state_content:
      - state
      - temperature
      - humidity
    grid_options:
      columns: full

Javascript errors shown in your browser console/inspector

No response

Additional information

No response

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

No branches or pull requests

1 participant