timer-bar-card icon indicating copy to clipboard operation
timer-bar-card copied to clipboard

Bar doesn't update if remain time sensor of Xiaomi Smart Air Fryer updates

Open ocean90 opened this issue 11 months ago • 3 comments

Describe the bug I'm using the Xiaomi Miot add-on which provides various entities for my Air Fryer including status, time remaining and target time. I have the following configuration and so far it kind of works, but the bar is not updating even though the left time entity is updating every minute. What am I missing here? Thanks for any hints!

Your card configuration

type: custom:timer-bar-card
entity: sensor.careli_maf05a_53b4_status
debug: false
remain_time:
  entity: sensor.careli_maf05a_53b4_left_time
  units: minutes
duration:
  entity: number.careli_maf05a_53b4_target_time
  units: minutes
active_state: cooking
pause_state: pause
icon: mdi:fire
invert: true
bar_width: 60%
bar_height: 20px
format: "%m Minuten"
name: Restlaufzeit
translations:
  pause: Pausiert
  standby: Standby
  unavailable: Ausgeschaltet
mushroom:
  layout: vertical
  color: blue
tap_action:
  action: none

Debug information

HA Version: 2024.12.5

State: standby (state mode = idle)
Mode: idle (explicit; guess mode produces N/A)
Duration: 900 second
Time remaining:
Counter:
Attr: {"friendly_name":"Heißluft-Fritteuse Betriebsstatus","air_fryer.status":1,"air_fryer.fault":0}


State: cooking (state mode = active)
Mode: active (explicit; guess mode produces N/A)
Duration: 600 second
Time remaining: 600
Counter: 600
Attr: {"air_fryer.status":4,"air_fryer.fault":0,"friendly_name":"Heißluft-Fritteuse Betriebsstatus"}

ocean90 avatar Jan 07 '25 09:01 ocean90

What does the Duration & TIme remaining look like while the card counts down? My suspicion is that they are both equal.

rianadon avatar Jan 26 '25 01:01 rianadon

@rianadon Sorry for late response. number.careli_maf05a_53b4_target_time stays at 10 and sensor.careli_maf05a_53b4_left_time decreases every minute.

Right now the bar only updates when the state changes or I refresh the browser tab.

ocean90 avatar Feb 05 '25 10:02 ocean90

@rianadon Do you have any other ideas? Would really like to get this running. 🙂 #206 may have more information.

ocean90 avatar Mar 06 '25 11:03 ocean90