Change attributes in real-time of canvas-gauge for solar panel (triple) gauge

hi tom
tx it worked!! iou man!!!

1/ downloaded card-tools.js from https://github.com/thomasloven/lovelace-card-tools + put it in the root of www-folder + entry in ui-config from lovelace. I had to chmod 777 the file otherwise error messages.
2/ installed card-templater from hacs
3/ put

type: 'custom:card-templater'
entities:
  - sensor.analyze_2_eandis
  - sensor.analyze_2_zonnepanelen
  - sensor.analyze_2_verbruik
card:
  type: 'custom:canvas-gauge-card'
  

before original card and then used in the original card with _template suffix for naming,
eg

        from_template: '{{ states(''sensor.analyze_2_zonnepanelen'')|float}}'
        to_template: '{{ states(''sensor.analyze_2_verbruik'')|float}}'
    title_template: '{{ state_attr(''sensor.analyze_2_eandis'',''friendly_name'') }}'

1 Like