Skip to content

Animation Not working as expected #36

@wouzer

Description

@wouzer

Animation of gauge not working as expected. It doesn't animate from the old value to the new, but 0 to the new. According to the description of the canvas-gauges (https://canvas-gauges.com/documentation/user-guide/configuration), it should animate the needle from old to new value.

Here is my (lovelace) config of the card:

card_height: 175
entity: sensor.verbruik_current
gauge:
animation: true
animationDuration: 1500
animationRule: linear
borderInnerWidth: 0
borderMiddleWidth: 0
borderOuterWidth: 0
borderShadowWidth: 0
borders: false
height: 175
highlights:
- color: 'rgba(200, 50, 50, .75)'
from: 4000
to: 5000
majorTicks:
- '0'
- ' '
- '1000'
- ' '
- '2000'
- ' '
- '3000'
- ' '
- '4000'
- ' '
- '5000'
maxValue: 5000
minValue: 0
minorTicks: 5
startAngle: 45
strokeTicks: false
ticksAngle: 270
title: Verbruik (W)
type: radial-gauge
valueBox: true
valueDec: 0
width: 200
type: 'custom:canvas-gauge-card'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions