rianadon / timer-bar-card

A progress bar display for Home Assistant timers
Other
340 stars 15 forks source link

HomeWhiz Washer/Dryer - Duration vs Remaining #109

Closed n00bcodr closed 6 months ago

n00bcodr commented 7 months ago

I have a HomeWhiz compatible Washer and am wondering how to implement it in the bar.

It gives two entities, duration and remaining time. The time is in minutes.

sensor.bob_duration

image

sensor.bob_remaining

image

PS: Yes, my washer is called Bob 😄

rianadon commented 7 months ago

Hi there!

If you have access to the times Bob starts and finishes :), I recommend you use these values plus the duration to specify the time. Otherwise, you can use remaining time. The section on remaining time in the README explains what values you'll need to pair with the remaining time.

GigiPompieru commented 6 months ago

Hey, did you get this working? I have a Beko washing machine and I'm trying to get the card working but I'm not sure if I need to create a custom sensor or just use the info in the card.

So far my progress is:

type: custom:timer-bar-card
debug: true
entities:
  - entity: sensor.izaura_remaining_time
    active_state: sensor.izaura_state
    duration:
      attribute: timespan
      units: minutes

but the card looks like this: image Don't really know what is needed to make the bar appear.

If it helps in anyway, the device exposes: image

The duration changes based on the program selected and the remaining time remains 1 even if the state goes to off.

rianadon commented 6 months ago

@GigiPompieru I'm a bit confused looking at your current config. You have:

    duration:
      attribute: timespan

but the debug information in the card is showing that the sensor.izaura_remaining_time entity doesn't have any timespan attribute. Maybe you meant to use state: true to set from the entity's state?

Thanks for posting all the entities by the way! This is how I'd set up the card with them:

type: custom:timer-bar-card
debug: true
entities:
  - entity: sensor.izaura_state
    active_state: on
    duration:
      entity: sensor.izura_duration
    remaining:
      entity: sensor.izura_remaining_time
      units: minutes
GigiPompieru commented 6 months ago

this got it working

type: custom:timer-bar-card
entities:
  - entity: sensor.izaura_state
    active_state: device_state_running
    duration:
      entity: sensor.izaura_duration
      units: minutes
    remaining:
      entity: sensor.izaura_remaining_time
      units: minutes

Screenshot_20240105_230752_Home Assistant

rianadon commented 6 months ago

Nice job! That does look like it is working. If you'd like to create an integration doc and copy paste your card configuration & screenshots, I can add it to the README to help anyone else with a HomeWhiz device.

I'll close this issue since you have a successful configuration. @n00bcodr here's your answer 😁