Bonjour,
Je cherche simplement à réduire le nombre de décimales affichées sur ma carte.
Quelqu’un a une idée ?
Je donne l’image et le code ci-dessous (il s’agit uniquement de la 3ème carte, donc, car les autres ne disposent pas d’un affichage de la puissance).
Quelqu’un a une idée du code à ajouter ?
Merci à vous,
type: horizontal-stack
cards:
- type: custom:mushroom-template-card
primary: Fontaine
secondary: .
icon: mdi:fountain
layout: vertical
multiline_secondary: false
tap_action:
action: toggle
entity: switch.fontaine
icon_color: |-
{% set state=states('switch.fontaine') %}
{% if state=='on' %}
green
{% elif state=='off' %}
blue
{% else %}
red
{% endif %}
- type: custom:mushroom-template-card
primary: Filtration
secondary: .
icon: mdi:filter
layout: vertical
multiline_secondary: false
tap_action:
action: toggle
icon_color: |-
{% set state=states('switch.etang_filtration') %}
{% if state=='on' %}
green
{% elif state=='off' %}
blue
{% else %}
red
{% endif %}
entity: switch.etang_filtration
- type: custom:mushroom-template-card
primary: UV
secondary: |
{{states('sensor.etang_uv_puissance') }} W
icon: mdi:lightbulb-fluorescent-tube
layout: vertical
multiline_secondary: false
tap_action:
action: toggle
icon_color: |-
{% set state=states('switch.etang_uv') %}
{% if state=='on' %}
green
{% elif state=='off' %}
blue
{% else %}
red
{% endif %}
entity: switch.etang_uv
Ma configuration
[center]## System Information
version | core-2024.4.4 |
---|---|
installation_type | Home Assistant OS |
dev | false |
hassio | true |
docker | true |
user | root |
virtualenv | false |
python_version | 3.12.2 |
os_name | Linux |
os_version | 6.1.73-haos-raspi |
arch | aarch64 |
timezone | Europe/Brussels |
config_dir | /config |
Home Assistant Community Store
GitHub API | ok |
---|---|
GitHub Content | ok |
GitHub Web | ok |
GitHub API Calls Remaining | 5000 |
Installed Version | 1.34.0 |
Stage | running |
Available Repositories | 1393 |
Downloaded Repositories | 36 |
Home Assistant Cloud
logged_in | true |
---|---|
subscription_expiration | 28 avril 2025 à 02:00 |
relayer_connected | true |
relayer_region | eu-central-1 |
remote_enabled | true |
remote_connected | true |
alexa_enabled | false |
google_enabled | true |
remote_server | eu-central-1-19.ui.nabu.casa |
certificate_status | ready |
instance_id | f0fd017040d14711b17f54352dde68e6 |
can_reach_cert_server | ok |
can_reach_cloud_auth | ok |
can_reach_cloud | ok |
Home Assistant Supervisor
host_os | Home Assistant OS 12.2 |
---|---|
update_channel | stable |
supervisor_version | supervisor-2024.04.0 |
agent_version | 1.6.0 |
docker_version | 25.0.5 |
disk_total | 116.6 GB |
disk_used | 10.7 GB |
healthy | true |
supported | true |
board | rpi5-64 |
supervisor_api | ok |
version_api | ok |
installed_addons | Terminal & SSH (9.13.0), File editor (5.8.0), Samba share (12.3.1), Home Assistant Google Drive Backup (0.112.1), Studio Code Server (5.15.0), Spotify Connect (0.13.0), OpenThread Border Router (2.6.0), Matter Server (5.5.1), Mosquitto broker (6.4.0) |
Dashboards
dashboards | 2 |
---|---|
resources | 35 |
views | 6 |
mode | storage |
Recorder
oldest_recorder_run | 19 avril 2024 à 16:53 |
---|---|
current_recorder_run | 28 avril 2024 à 10:18 |
estimated_db_size | 596.01 MiB |
database_engine | sqlite |
database_version | 3.44.2 |
Spotify
api_endpoint_reachable | pending |
---|