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

Home Connect (BSH - Bosch/Siemens/Neff/Gagenau) Dishwasher #36

Closed
rickdeck opened this issue Jan 12, 2022 · 11 comments
Closed

Home Connect (BSH - Bosch/Siemens/Neff/Gagenau) Dishwasher #36

rickdeck opened this issue Jan 12, 2022 · 11 comments

Comments

@rickdeck
Copy link

Integration name and link
Home Connect
https://github.com/home-assistant/core/tree/dev/homeassistant/components/home_connect

Used to connect to BSH appliances (Bosch/Siemens/Neff/Gaggenau/...)
In my case, I connected to a Bosch Dishwasher to display the time left until completion.

Your card configuration

type: custom:timer-bar-card
entities:
  - entity: sensor.dishwasher_operation_state
    name: Dishwasher running
    active_state: Run
    active_icon: mdi:dishwasher
    end_time:
      entity: sensor.dishwasher_remaining_program_time
    text_width: 4em
    bar_width: calc(70% - 10em)

Result:
image

Caveats

  • I had to adapt text_width as the remaining program time can be rather large (i.e. "1:45:30"), could be good to make this dynamic based on text-length because when the timer is below 1h the spacing looks a bit awkward compared to other timerbars
  • It took me quite a while to understand that the timer-bar didn't work because I need to define a manual active_state (without that, it just displays the content of Remaining_Program_Time). Could be good to emphasize that in case you want to add it to the docs.

Relevant Home Connect entities for your reference:
image

  • sensor.dishwasher_operation_state can only take the states "Unavailable" or "Run"
  • sensor.dishwasher_remaining_program_time changes to "Unavailable" when not running, so I put the whole yaml inside a conditional to only display when sensor.dishwasher_operation_state is "Run"

FYI: There is also another entity from the Home Connect integration called sensor.dishwasher_duration, however in case of my device it was always "Unavailable" (might be used by other appliances from BSH)

Hope that helps. Keep up the good work!
Cheers!

@rianadon
Copy link
Owner

Thanks so much for the splended documentation and writeup @rickdeck!

I'll a warning about the active state in the debug pane when it's not properly configured. Hopefully that would've helped.

@ausfas
Copy link

ausfas commented Feb 27, 2023

How to track progress as a bar e.g 0->100%

@eMerzh
Copy link

eMerzh commented Dec 7, 2023

for those using home_connect_alt it's a tiny bit different:

type: custom:timer-bar-card
entities:
  - entity: sensor.412111111_bsh_common_status_operationstate
    name: Dishwasher running
    active_state: BSH.Common.EnumType.OperationState.Run
    active_icon: mdi:dishwasher
    end_time:
      entity: sensor.41211111112_bsh_common_option_remainingprogramtime
    text_width: 4em
    bar_width: calc(70% - 10em)

@maraid
Copy link

maraid commented Jan 7, 2024

@eMerzh Thanks. I was a bit annoyed by it showing BSH.Common.EnumType.OperationState.Ready when the dishwasher wasn't running. To solve that I created a template sensor.

sensor:
  - platform: template
    sensors:
      dishwasher_operation_state:
        value_template: >
          {{ states('sensor.41211111112_bsh_common_status_operationstate').split('.')[-1] }}
entities:
  - type: custom:timer-bar-card
    name: Dishwasher
    entity: sensor.dishwasher_operation_state
    active_state: Run
    icon: mdi:dishwasher
    end_time:
      entity: sensor.41211111112_bsh_common_option_remainingprogramtime
    text_width: 4em
    bar_width: calc(40%)

@xisio78
Copy link

xisio78 commented Jan 17, 2024

for those using home_connect_alt it's a tiny bit different:
any idea how get mushroom style using home_connect_alt ?

@rianadon
Copy link
Owner

The only difference for mushroom styling is that you need to add the mushroom option: https://github.com/rianadon/timer-bar-card#mushroom-style

@xisio78
Copy link

xisio78 commented Jan 25, 2024

The only difference for mushroom styling is that you need to add the mushroom option: https://github.com/rianadon/timer-bar-card#mushroom-style
It didn't quite work as I wanted with the alt so I did it another way ;)

Animation

Animation2

@DJBenson
Copy link

The only difference for mushroom styling is that you need to add the mushroom option: https://github.com/rianadon/timer-bar-card#mushroom-style
It didn't quite work as I wanted with the alt so I did it another way ;)

Animation Animation

Animation2 Animation2

Would you mind sharing your code for the washing machine example?

@54m5p33d
Copy link

@eMerzh Thanks. I was a bit annoyed by it showing BSH.Common.EnumType.OperationState.Ready when the dishwasher wasn't running. To solve that I created a template sensor.

sensor:
  - platform: template
    sensors:
      dishwasher_operation_state:
        value_template: >
          {{ states('sensor.41211111112_bsh_common_status_operationstate').split('.')[-1] }}
entities:
  - type: custom:timer-bar-card
    name: Dishwasher
    entity: sensor.dishwasher_operation_state
    active_state: Run
    icon: mdi:dishwasher
    end_time:
      entity: sensor.41211111112_bsh_common_option_remainingprogramtime
    text_width: 4em
    bar_width: calc(40%)

Can someone share how to get this using Mushroom card. When I add the Mushroom: in nothing changes
Using 2024.8 version with latest mushroom

@B1199
Copy link

B1199 commented Sep 16, 2024

Can someone share how to get this using Mushroom card. When I add the Mushroom: in nothing changes Using 2024.8 version with latest mushroom

You have to note:
To enable the mushroom style, you'll need to configure the card with entity rather than entities and add the mushroom option. You can show multiple cards side by side using the Grid Card.

Example:

type: custom:timer-bar-card
entity: sensor.bosch_wav28mwin_68a40e953769_bsh_common_status_operationstate
name: Waschmaschine
icon: mdi:washing-machine
active_state: BSH.Common.EnumType.OperationState.Run
end_time:
 entity: >-
   sensor.bosch_wav28mwin_68a40e953769_bsh_common_option_remainingprogramtime
text_width: 4em
bar_width: calc(70% - 10em)
invert: true
mushroom:

@el97
Copy link

el97 commented Nov 13, 2024

Hm, I can't get it to work with Home Assistant 2024.11.1. It appears that the default active icon changed but I'm not sure if this happened with the latest update or not. I changed out the the active icon to mdi:play since it's the default one but the bar won't show up.

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

10 participants