home assistent gue nachkommastellen runden
type: vertical-stack
cards:
- type: entities
entities:
- entity: sensor.ryzen7800_network_0_ipv4
name: IP Address
- entity: sensor.ryzen7800_system_uptime
name: Uptime
- type: 'custom:template-entity-row'
icon: 'mdi:download'
name: Mbits/Sec Received
state: >-
{{ (states('sensor.ryzen7800_network_0_bps_received') | float *
0.00001) |round(2) }} Mbps
- type: 'custom:template-entity-row'
icon: 'mdi:upload'
name: Mbits/Sec Sent
state: >-
{{ (states('sensor.ryzen7800_network_0_bps_sent') | float * 0.00001)
|round(2) }} Mbps
title: Ryzen 7800
show_header_toggle: false
- type: button
entity: switch.ryzen_7800
tap_action:
action: toggle
hold_action:
action: call-service
service: mqtt.publish
service_data:
topic: iotlink/workgroup/ryzen7800/commands/shutdown
payload: ''
icon: 'mdi:power'
name: Power
icon_height: 100px