SmartThings (Samsung)
TheRedBull205 opened this issue · comments
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
- The "active_state" is lower case, so this is "run".
- The Bar_width was taken from: #36
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.
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.
Hey @spitfire! Thanks for posting your config. Could you add debug: true
to your card config and paste the output? Thanks!
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.
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.
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.
Understood, thank you for the clarification.