Open IMakeTP opened 1 year ago
@IMakeTP This is more of a bug added by HA to custom:button-card
.
The next release will handle display precision for cards that work with the translation engine. #1314 Note: This does not include all chips and custom templates like you built in the example.
how would use it for example above
label: '[[[ return states["sensor.front_garden_motion_sensor_temperature"].state + "°C" ]]]'
how would use it for example above
label: '[[[ return states["sensor.front_garden_motion_sensor_temperature"].state + "°C" ]]]'
It would not work without globally setting the entity. So the minimal things you need to have in your card/chip is:
template:
- ulm_translation_engine
entity: sensor.front_garden_motion_sensor_temperature
label: "[[[ return variables.ulm_translation_state_unit ]]]"
display precision for cards that work with the translation engine
You will need to have the label rendered by the translation engine, which requires the globally set entity
Describe the bug Similar to the issue with Mushroom, Minimalist chip cards are not updating with precision adjustments made within HA UI. https://github.com/home-assistant/frontend/issues/15582
To Reproduce
yaml code: type: 'custom:button-card' template: chip_icon_label label: > [[[ return states['sensor.meater_probe_ambient'].state + "°F / " + states['sensor.meater_probe_internal'].state + "°F" ]]] icon: mdi:grill color: "var(--google-red)"
Expected behavior Temperature display should be with zero significant digits
Screenshots![image](https://github.com/UI-Lovelace-Minimalist/UI/assets/132024767/2bee1ba5-633d-4810-b8f4-5f79efdb843d)
Additional context Add any other context about the problem here.