Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SmartThings (Samsung) #45

Closed
TheRedBull205 opened this issue May 26, 2022 · 8 comments
Closed

SmartThings (Samsung) #45

TheRedBull205 opened this issue May 26, 2022 · 8 comments

Comments

@TheRedBull205
Copy link

Integration name and link
SmartThings
https://github.com/home-assistant/core/tree/dev/homeassistant/components/smartthings
https://www.home-assistant.io/integrations/smartthings/

Your card configuration
Preview of a samsung dryer:

type: custom:timer-bar-card
entities:
  - entity: sensor.droger_dryer_machine_state
    name: Dryer
    waiting_state: Stop
    active_state: run
    icon: mdi:tumble-dryer-off
    active_icon: mdi:tumble-dryer
    end_time:
      entity: sensor.droger_dryer_completion_time
    text_width: 4em
    bar_width: calc(70% - 10em)

Result:
(Will add a screenshot later when the dryer is running again)

Caveats

@rianadon
Copy link
Owner

Thanks so much for the documentation @TheRedBull205! I've linked to it on the README. It's so strange the active state is lower case but waiting state is uppercase.

@spitfire
Copy link

I've tried to use it with my Smartthings connected Samsung Dual Cook Oven, but it doesn't work for me.

type: custom:timer-bar-card
entities:
  - entity: sensor.piekarnik_oven_machine_state
    name: Piekarnik
    active_state: running
    waiting_state: ready
    icon: mdi:stove
    end_time:
      entity: sensor.piekarnik_oven_completion_time
    invert: false
    text_width: 4em
    bar_width: calc(70% - 10em)

sensor.piekarnik_oven_completion_time shows completion time in the following format 2023-02-19T11:45:11.245Z
sensor.piekarnik_oven_machine_state shows running or ready

All the card displays is current machine state (i.e. running) instead of progress bar.

@rianadon
Copy link
Owner

Hey @spitfire! Thanks for posting your config. Could you add debug: true to your card config and paste the output? Thanks!

@spitfire
Copy link

Zrzut ekranu 2023-03-11 o 13 20 39

@rianadon
Copy link
Owner

Thanks! That helps a lot.

The active state is case sensitive, so if you haven't already try using the lowercase running as it appears in the debug information.

@civarson
Copy link

Hey I hope it's OK to revitalize this thread but I just got a new Range so I'm eager to use this card for oven timers. All it does is show "Range Running" in the card. My time format is the same as @spitfire is reporting.

Screenshot 2023-09-27 163502

@rianadon
Copy link
Owner

Hello! With this configuration the card is going to be using the time the sensor.range_oven_machine_state last changed. It should only change when the oven turns on and off, but maybe the state changed more recently?

If there's an entity with the start time from which you could pull the data, or if there's an entity that shows the duration, you could add those to the configuration.

@civarson
Copy link

Understood, thank you for the clarification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants