ekutner / home-connect-hass

Alternative (and improved) Home Connect integration for Home Assistant
MIT License
494 stars 53 forks source link

Current programmeprogress everytime shows 0% with my Dryer #325

Closed daSchizo closed 4 months ago

daSchizo commented 5 months ago

Describe the bug

Hello,

I have a Bosch WTX87Mwin tumble dryer.

I tried to create a level chart for my dryer to show the progress graphically and as a percentage.

Everything works perfectly with my washing machine. However, with the dryer the display always remains at 0%. If you look directly into the entity then only 0% is displayed there. Of course I don't know whether it's the integration or maybe the dryer that doesn't provide the data. In any case, I wanted to report this here.

Thanks in advance

Version of the custom_component

Version 1.34.0

Configuration

Debug log

2024-01-22 20:57:53.818 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-01-22 20:57:53.818 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration waste_collection_schedule which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-01-22 20:57:53.818 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration home_connect_alt which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-01-22 20:57:57.817 DEBUG (MainThread) [home_connect_async.api] HTTP GET /api/homeappliances (try=1 count=1)

2024-01-22 20:57:57.935 DEBUG (MainThread) [home_connect_async.api] HTTP GET /api/homeappliances (try=1 count=1) [200] 2024-01-22 20:57:57.935 DEBUG (MainThread) [home_connect_async.appliance] Starting to load appliance data for Trockner (BOSCH-WTX87MWIN-68A40E73BAC5) 2024-01-22 20:57:57.935 DEBUG (MainThread) [home_connect_async.api] HTTP GET /api/homeappliances/BOSCH-WTX87MWIN-68A40E73BAC5/programs/selected (try=1 count=2)

2024-01-22 20:57:59.451 DEBUG (MainThread) [home_connect_async.api] HTTP GET /api/homeappliances/BOSCH-WTX87MWIN-68A40E73BAC5/programs/selected (try=1 count=2) [200] 2024-01-22 20:57:59.453 DEBUG (MainThread) [home_connect_async.appliance] Loaded 9 Options for selected/LaundryCare.Dryer.Program.Mix 2024-01-22 20:57:59.454 DEBUG (MainThread) [home_connect_async.appliance] Loaded data for selected Program 2024-01-22 20:57:59.454 DEBUG (MainThread) [home_connect_async.api] HTTP GET /api/homeappliances/BOSCH-WTX87MWIN-68A40E73BAC5/programs/active (try=1 count=3)

2024-01-22 20:57:59.512 DEBUG (MainThread) [home_connect_async.api] HTTP GET /api/homeappliances/BOSCH-WTX87MWIN-68A40E73BAC5/programs/active (try=1 count=3) [200] 2024-01-22 20:57:59.514 DEBUG (MainThread) [home_connect_async.appliance] Loaded 11 Options for active/LaundryCare.Dryer.Program.Mix 2024-01-22 20:57:59.514 DEBUG (MainThread) [home_connect_async.appliance] Loaded data for active Program 2024-01-22 20:57:59.515 DEBUG (MainThread) [home_connect_async.api] HTTP GET /api/homeappliances/BOSCH-WTX87MWIN-68A40E73BAC5/settings (try=1 count=4)

2024-01-22 20:57:59.582 DEBUG (MainThread) [home_connect_async.api] HTTP GET /api/homeappliances/BOSCH-WTX87MWIN-68A40E73BAC5/settings (try=1 count=4) [200] 2024-01-22 20:57:59.582 DEBUG (MainThread) [home_connect_async.api] HTTP GET /api/homeappliances/BOSCH-WTX87MWIN-68A40E73BAC5/settings/BSH.Common.Setting.ChildLock (try=1 count=5)

2024-01-22 20:57:59.624 DEBUG (MainThread) [home_connect_async.api] HTTP GET /api/homeappliances/BOSCH-WTX87MWIN-68A40E73BAC5/settings/BSH.Common.Setting.ChildLock (try=1 count=5) [200] 2024-01-22 20:57:59.625 DEBUG (MainThread) [home_connect_async.api] HTTP GET /api/homeappliances/BOSCH-WTX87MWIN-68A40E73BAC5/settings/BSH.Common.Setting.PowerState (try=1 count=6)

2024-01-22 20:57:59.666 DEBUG (MainThread) [home_connect_async.api] HTTP GET /api/homeappliances/BOSCH-WTX87MWIN-68A40E73BAC5/settings/BSH.Common.Setting.PowerState (try=1 count=6) [200] 2024-01-22 20:57:59.667 DEBUG (MainThread) [home_connect_async.appliance] Loaded 2 Settings 2024-01-22 20:57:59.667 DEBUG (MainThread) [home_connect_async.api] HTTP GET /api/homeappliances/BOSCH-WTX87MWIN-68A40E73BAC5/status (try=1 count=7)

2024-01-22 20:57:59.718 DEBUG (MainThread) [home_connect_async.api] HTTP GET /api/homeappliances/BOSCH-WTX87MWIN-68A40E73BAC5/status (try=1 count=7) [200] 2024-01-22 20:57:59.719 DEBUG (MainThread) [home_connect_async.appliance] Loaded 5 Statuses 2024-01-22 20:57:59.719 DEBUG (MainThread) [home_connect_async.api] HTTP GET /api/homeappliances/BOSCH-WTX87MWIN-68A40E73BAC5/commands (try=1 count=8)

2024-01-22 20:57:59.768 DEBUG (MainThread) [home_connect_async.api] HTTP GET /api/homeappliances/BOSCH-WTX87MWIN-68A40E73BAC5/commands (try=1 count=8) [200] 2024-01-22 20:57:59.769 DEBUG (MainThread) [home_connect_async.appliance] Loaded 1 Commands 2024-01-22 20:57:59.769 DEBUG (MainThread) [home_connect_async.api] HTTP GET /api/homeappliances/BOSCH-WTX87MWIN-68A40E73BAC5/programs/available (try=1 count=9)

2024-01-22 20:57:59.820 DEBUG (MainThread) [home_connect_async.api] HTTP GET /api/homeappliances/BOSCH-WTX87MWIN-68A40E73BAC5/programs/available (try=1 count=9) [200] 2024-01-22 20:57:59.820 DEBUG (MainThread) [home_connect_async.api] HTTP GET /api/homeappliances/BOSCH-WTX87MWIN-68A40E73BAC5/programs/available/LaundryCare.Dryer.Program.Mix (try=1 count=10)

2024-01-22 20:57:59.882 DEBUG (MainThread) [home_connect_async.api] HTTP GET /api/homeappliances/BOSCH-WTX87MWIN-68A40E73BAC5/programs/available/LaundryCare.Dryer.Program.Mix (try=1 count=10) [200] 2024-01-22 20:57:59.882 DEBUG (MainThread) [home_connect_async.appliance] Loaded 0 Options for available/LaundryCare.Dryer.Program.Mix 2024-01-22 20:57:59.882 DEBUG (MainThread) [home_connect_async.appliance] Loaded 1 available Programs 2024-01-22 20:57:59.882 DEBUG (MainThread) [home_connect_async.appliance] Finished loading appliance data for Trockner (BOSCH-WTX87MWIN-68A40E73BAC5) 2024-01-22 20:57:59.882 DEBUG (MainThread) [home_connect_async.callback_registery] Broadcasting event: Events.PAIRED = None 2024-01-22 20:57:59.883 DEBUG (MainThread) [custom_components.home_connect_alt.common] Registering new entities: {'bosch_wtx87mwin_68a40e73bac5_bsh_common_option_programprogress', 'bosch_wtx87mwin_68a40e73bac5_laundrycare_dryer_option_connecteddry_originalprogramtime', 'bosch_wtx87mwin_68a40e73bac5_laundrycare_dryer_option_dryingtargetadjustment', 'bosch_wtx87mwin_68a40e73bac5_bsh_common_option_estimatedtotalprogramtime', 'bosch_wtx87mwin_68a40e73bac5_selected_program', 'bosch_wtx87mwin_68a40e73bac5_bsh_common_status_operationstate', 'bosch_wtx87mwin_68a40e73bac5_active_program', 'bosch_wtx87mwin_68a40e73bac5_laundrycare_dryer_option_dryingtarget', 'bosch_wtx87mwin_68a40e73bac5_laundrycare_common_option_processphase', 'bosch_wtx87mwin_68a40e73bac5_bsh_common_setting_powerstate', 'bosch_wtx87mwin_68a40e73bac5_laundrycare_dryer_option_wrinkleguard', 'bosch_wtx87mwin_68a40e73bac5_bsh_common_option_remainingprogramtime', 'bosch_wtx87mwin_68a40e73bac5_bsh_common_option_finishinrelative'} 2024-01-22 20:57:59.886 DEBUG (MainThread) [custom_components.home_connect_alt.common] Registering new entities: {'bosch_wtx87mwin_68a40e73bac5_stop', 'bosch_wtx87mwin_68a40e73bac5_start_pause'} 2024-01-22 20:57:59.887 DEBUG (MainThread) [custom_components.home_connect_alt.common] Registering new entities: {'bosch_wtx87mwin_68a40e73bac5_bsh_common_status_remotecontrolstartallowed', 'bosch_wtx87mwin_68a40e73bac5_bsh_common_status_localcontrolactive', 'bosch_wtx87mwin_68a40e73bac5_bsh_common_setting_childlock', 'bosch_wtx87mwin_68a40e73bac5_laundrycare_dryer_option_gentle', 'bosch_wtx87mwin_68a40e73bac5_bsh_common_status_remotecontrolactive', 'bosch_wtx87mwin_68a40e73bac5_connected', 'bosch_wtx87mwin_68a40e73bac5_bsh_common_option_remainingprogramtimeisestimated', 'bosch_wtx87mwin_68a40e73bac5_bsh_common_status_doorstate'} 2024-01-22 20:57:59.887 DEBUG (MainThread) [custom_components.home_connect_alt.common] Registering new entities: {'bosch_wtx87mwin_68a40e73bac5_bsh_common_setting_childlock'} 2024-01-22 20:57:59.887 DEBUG (MainThread) [custom_components.home_connect_alt.common] Registering new entities: set() 2024-01-22 20:57:59.887 DEBUG (MainThread) [custom_components.home_connect_alt.common] Registering new entities: {'bosch_wtx87mwin_68a40e73bac5_programs', 'bosch_wtx87mwin_68a40e73bac5_bsh_common_setting_powerstate'} 2024-01-22 20:57:59.887 DEBUG (MainThread) [home_connect_async.callback_registery] Broadcasting event: Events.DATA_CHANGED = None 2024-01-22 20:57:59.887 DEBUG (MainThread) [custom_components.home_connect_alt.common] Registering new entities: set() 2024-01-22 20:57:59.887 DEBUG (MainThread) [custom_components.home_connect_alt.common] Registering new entities: set() 2024-01-22 20:57:59.888 DEBUG (MainThread) [custom_components.home_connect_alt.common] Registering new entities: set() 2024-01-22 20:57:59.888 DEBUG (MainThread) [custom_components.home_connect_alt.common] Registering new entities: set() 2024-01-22 20:57:59.888 DEBUG (MainThread) [custom_components.home_connect_alt.common] Registering new entities: set() 2024-01-22 20:57:59.888 DEBUG (MainThread) [custom_components.home_connect_alt.common] Registering new entities: set() 2024-01-22 20:57:59.888 DEBUG (MainThread) [home_connect_async.homeconnect] Loadded appliance: Trockner 2024-01-22 20:57:59.888 DEBUG (MainThread) [home_connect_async.homeconnect] Connecting to SSE stream 2024-01-22 20:58:09.280 DEBUG (MainThread) [home_connect_async.homeconnect] Received event from SSE stream: MessageEvent(type='NOTIFY', message='NOTIFY', data='{"haId":"BOSCH-WTX87MWIN-68A40E73BAC5","items":[{"handling":"none","key":"BSH.Common.Option.RemainingProgramTime","level":"hint","name":"Remaining programme running time","timestamp":1705953489,"unit":"seconds","uri":"/api/homeappliances/BOSCH-WTX87MWIN-68A40E73BAC5/programs/active/options/BSH.Common.Option.RemainingProgramTime","value":5280}]}', origin='https://api.home-connect.com', last_event_id='BOSCH-WTX87MWIN-68A40E73BAC5') 2024-01-22 20:58:09.281 DEBUG (MainThread) [home_connect_async.callback_registery] Broadcasting event: BSH.Common.Option.RemainingProgramTime = 5280 2024-01-22 20:58:30.581 DEBUG (MainThread) [home_connect_async.homeconnect] Received event from SSE stream: MessageEvent(type='KEEP-ALIVE', message='KEEP-ALIVE', data='', origin='https://api.home-connect.com', last_event_id='BOSCH-WTX87MWIN-68A40E73BAC5') 2024-01-22 20:58:54.950 DEBUG (MainThread) [home_connect_async.homeconnect] Received event from SSE stream: MessageEvent(type='KEEP-ALIVE', message='KEEP-ALIVE', data='', origin='https://api.home-connect.com', last_event_id='BOSCH-WTX87MWIN-68A40E73BAC5') 2024-01-22 20:59:09.261 DEBUG (MainThread) [home_connect_async.homeconnect] Received event from SSE stream: MessageEvent(type='NOTIFY', message='NOTIFY', data='{"haId":"BOSCH-WTX87MWIN-68A40E73BAC5","items":[{"handling":"none","key":"BSH.Common.Option.RemainingProgramTime","level":"hint","name":"Remaining programme running time","timestamp":1705953549,"unit":"seconds","uri":"/api/homeappliances/BOSCH-WTX87MWIN-68A40E73BAC5/programs/active/options/BSH.Common.Option.RemainingProgramTime","value":5520}]}', origin='https://api.home-connect.com', last_event_id='BOSCH-WTX87MWIN-68A40E73BAC5') 2024-01-22 20:59:09.262 DEBUG (MainThread) [home_connect_async.callback_registery] Broadcasting event: BSH.Common.Option.RemainingProgramTime = 5520

Paste the exception info here or attach the full log file
ekutner commented 5 months ago

You didn't attach the full log so I can't be 100% sure but the log shows two RemainingProgramTime events with no program progress events so I'm guessing HC isn't sending progress events for your appliance. If that is indeed the case there is nothing I can do about it. I have the same issue with my appliance and had to use a rather complicated template to calculate the progress based on the remaining time.