custom-cards / dual-gauge-card

Dual gauge custom card for Lovelace in Home Assistant
MIT License
188 stars 41 forks source link

variable max #58

Open warlordattack opened 2 years ago

warlordattack commented 2 years ago

Hello, i have upload/download from my internet box

1/ i want to set max as : upload + download

type: custom:dual-gauge-card title: fbx min: 0 max: sensor.my_fbx outer: entity: sensor.my_fbx attribute: up label: up inner: entity: sensor.my_fbx attribute: down label: down

sensors.yaml :

My sensor works well, but max do not take sensor.my_fbx value wich is equal to up+down example : up=5 down=7 sensor.my_fbx=12 : max should be 12

2022-08-19_150835 2022-08-19_150925

2/ inside sensor.my_fbx i have 3 attributes : up, down, updown could i define max as an attribute ?

instead of : max: sensor.my_fbx

i would like : max: entity: sensor.my_fbx attribute: updown

This syntax seem not work ?

help please :)

gerar19 commented 1 year ago

This is perfect, but it doesn't work...