home-connect-hass: Cooker Hood - Failed to set the selected program: Program can currently not be written
When I select a cooker hood program it doesn’t seem to work. The cooker hood is connected to WiFi and visible on the Home Connect App and this integration can turn it on/off as well as the light on/off but I cannot select a program
Configuration
2022-06-02 21:57:54 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-DWK98PR60B-68A40E691C39')
2022-06-02 21:58:10 DEBUG (MainThread) [home_connect_async.appliance] Calling /api/homeappliances/BOSCH-DWK98PR60B-68A40E691C39/programs/selected with:
{
"data": {
"key": "Cooking.Common.Program.Hood.Automatic",
"options": []
}
}
2022-06-02 21:58:10 DEBUG (MainThread) [home_connect_async.api] HTTP put /api/homeappliances/BOSCH-DWK98PR60B-68A40E691C39/programs/selected (code=409 count=46)
2022-06-02 21:58:10 DEBUG (MainThread) [home_connect_async.api] API call failed with code=409 error=SDK.Error.ProgramNotWritable
2022-06-02 21:58:10 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140460186318448] Failed to set the selected program: Program can currently not be written (409 - None=Cooking.Common.Program.Hood.Automatic)
Traceback (most recent call last):
File "/config/custom_components/home_connect_alt/select.py", line 102, in async_select_option
await self._appliance.async_select_program(key=option)
File "/usr/local/lib/python3.9/site-packages/home_connect_async/appliance.py", line 219, in async_select_program
res = await self._async_set_program(key, options, 'selected')
File "/usr/local/lib/python3.9/site-packages/home_connect_async/appliance.py", line 368, in _async_set_program
raise HomeConnectError(response.error_description, response=response)
home_connect_async.common.HomeConnectError: ('Program can currently not be written', None, 'SDK.Error.ProgramNotWritable', 'Program can currently not be written', None)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 193, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1704, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1741, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service
await service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 680, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 964, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 717, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/select/__init__.py", line 54, in async_select_option
await entity.async_select_option(option)
File "/config/custom_components/home_connect_alt/select.py", line 105, in async_select_option
raise HomeAssistantError(f"Failed to set the selected program: {ex.error_description} ({ex.code} - {self._key}={option})")
homeassistant.exceptions.HomeAssistantError: Failed to set the selected program: Program can currently not be written (409 - None=Cooking.Common.Program.Hood.Automatic)
2022-06-02 21:58:12 DEBUG (MainThread) [home_connect_async.appliance] Calling /api/homeappliances/BOSCH-DWK98PR60B-68A40E691C39/programs/selected with:
{
"data": {
"key": "Cooking.Common.Program.Hood.Venting",
"options": []
}
}
2022-06-02 21:58:12 DEBUG (MainThread) [home_connect_async.api] HTTP put /api/homeappliances/BOSCH-DWK98PR60B-68A40E691C39/programs/selected (code=409 count=47)
2022-06-02 21:58:12 DEBUG (MainThread) [home_connect_async.api] API call failed with code=409 error=SDK.Error.ProgramNotWritable
2022-06-02 21:58:12 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140460186318448] Failed to set the selected program: Program can currently not be written (409 - None=Cooking.Common.Program.Hood.Venting)
Traceback (most recent call last):
File "/config/custom_components/home_connect_alt/select.py", line 102, in async_select_option
await self._appliance.async_select_program(key=option)
File "/usr/local/lib/python3.9/site-packages/home_connect_async/appliance.py", line 219, in async_select_program
res = await self._async_set_program(key, options, 'selected')
File "/usr/local/lib/python3.9/site-packages/home_connect_async/appliance.py", line 368, in _async_set_program
raise HomeConnectError(response.error_description, response=response)
home_connect_async.common.HomeConnectError: ('Program can currently not be written', None, 'SDK.Error.ProgramNotWritable', 'Program can currently not be written', None)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 193, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1704, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1741, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service
await service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 680, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 964, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 717, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/select/__init__.py", line 54, in async_select_option
await entity.async_select_option(option)
File "/config/custom_components/home_connect_alt/select.py", line 105, in async_select_option
raise HomeAssistantError(f"Failed to set the selected program: {ex.error_description} ({ex.code} - {self._key}={option})")
homeassistant.exceptions.HomeAssistantError: Failed to set the selected program: Program can currently not be written (409 - None=Cooking.Common.Program.Hood.Venting)
2022-06-02 21:58:14 DEBUG (MainThread) [home_connect_async.appliance] Calling /api/homeappliances/BOSCH-DWK98PR60B-68A40E691C39/programs/selected with:
{
"data": {
"key": "Cooking.Common.Program.Hood.DelayedShutOff",
"options": []
}
}
2022-06-02 21:58:14 DEBUG (MainThread) [home_connect_async.api] HTTP put /api/homeappliances/BOSCH-DWK98PR60B-68A40E691C39/programs/selected (code=409 count=48)
2022-06-02 21:58:14 DEBUG (MainThread) [home_connect_async.api] API call failed with code=409 error=SDK.Error.ProgramNotWritable
2022-06-02 21:58:14 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140460186318448] Failed to set the selected program: Program can currently not be written (409 - None=Cooking.Common.Program.Hood.DelayedShutOff)
Traceback (most recent call last):
File "/config/custom_components/home_connect_alt/select.py", line 102, in async_select_option
await self._appliance.async_select_program(key=option)
File "/usr/local/lib/python3.9/site-packages/home_connect_async/appliance.py", line 219, in async_select_program
res = await self._async_set_program(key, options, 'selected')
File "/usr/local/lib/python3.9/site-packages/home_connect_async/appliance.py", line 368, in _async_set_program
raise HomeConnectError(response.error_description, response=response)
home_connect_async.common.HomeConnectError: ('Program can currently not be written', None, 'SDK.Error.ProgramNotWritable', 'Program can currently not be written', None)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 193, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1704, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1741, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service
await service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 680, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 964, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 717, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/select/__init__.py", line 54, in async_select_option
await entity.async_select_option(option)
File "/config/custom_components/home_connect_alt/select.py", line 105, in async_select_option
raise HomeAssistantError(f"Failed to set the selected program: {ex.error_description} ({ex.code} - {self._key}={option})")
homeassistant.exceptions.HomeAssistantError: Failed to set the selected program: Program can currently not be written (409 - None=Cooking.Common.Program.Hood.DelayedShutOff)
If I select the programs in the Home Connect App I get the following in the log files
2022-06-02 22:03:09 DEBUG (MainThread) [home_connect_async.homeconnect] Received event from SSE stream: MessageEvent(type='NOTIFY', message='NOTIFY', data='{"items":[{"timestamp":1654203789,"handling":"none","uri":"/api/homeappliances/BOSCH-DWK98PR60B-68A40E691C39/settings/BSH.Common.Setting.PowerState","key":"BSH.Common.Setting.PowerState","value":"BSH.Common.EnumType.PowerState.On","level":"hint"},{"timestamp":1654203789,"handling":"none","uri":"/api/homeappliances/BOSCH-DWK98PR60B-68A40E691C39/programs/active","key":"BSH.Common.Root.ActiveProgram","value":"Cooking.Common.Program.Hood.Automatic","level":"hint"},{"timestamp":1654203789,"handling":"none","uri":"/api/homeappliances/BOSCH-DWK98PR60B-68A40E691C39/programs/active/options/Cooking.Common.Option.Hood.VentingLevel","key":"Cooking.Common.Option.Hood.VentingLevel","value":"Cooking.Hood.EnumType.Stage.FanStage01","level":"hint"},{"timestamp":1654203789,"handling":"none","uri":"/api/homeappliances/BOSCH-DWK98PR60B-68A40E691C39/programs/active/options/Cooking.Common.Option.Hood.IntensiveLevel","key":"Cooking.Common.Option.Hood.IntensiveLevel","value":"Cooking.Hood.EnumType.IntensiveStage.IntensiveStageOff","level":"hint"},{"timestamp":1654203789,"handling":"none","uri":"/api/homeappliances/BOSCH-DWK98PR60B-68A40E691C39/programs/active/options/BSH.Common.Option.ElapsedProgramTime","key":"BSH.Common.Option.ElapsedProgramTime","unit":"seconds","value":0,"level":"hint"}],"haId":"BOSCH-DWK98PR60B-68A40E691C39"}', origin='https://api.home-connect.com', last_event_id='BOSCH-DWK98PR60B-68A40E691C39')
2022-06-02 22:03:09 DEBUG (MainThread) [home_connect_async.callback_registery] Broadcasting event: BSH.Common.Setting.PowerState = BSH.Common.EnumType.PowerState.On
2022-06-02 22:03:09 DEBUG (MainThread) [home_connect_async.api] HTTP get /api/homeappliances/BOSCH-DWK98PR60B-68A40E691C39/programs/active (code=200 count=76)
2022-06-02 22:03:09 DEBUG (MainThread) [home_connect_async.appliance] Loaded 4 Options for active/Cooking.Common.Program.Hood.Automatic
2022-06-02 22:03:09 DEBUG (MainThread) [home_connect_async.appliance] Loaded data for active Program
2022-06-02 22:03:09 DEBUG (MainThread) [home_connect_async.api] HTTP get /api/homeappliances/BOSCH-DWK98PR60B-68A40E691C39/commands (code=200 count=77)
2022-06-02 22:03:09 DEBUG (MainThread) [home_connect_async.appliance] Loaded 0 Commands
2022-06-02 22:03:09 DEBUG (MainThread) [home_connect_async.callback_registery] Broadcasting event: Events.PROGRAM_STARTED = None
2022-06-02 22:03:09 DEBUG (MainThread) [home_connect_async.callback_registery] Broadcasting event: Events.DATA_CHANGED = None
2022-06-02 22:03:09 DEBUG (MainThread) [home_connect_async.callback_registery] Broadcasting event: BSH.Common.Root.ActiveProgram = Cooking.Common.Program.Hood.Automatic
2022-06-02 22:03:09 DEBUG (MainThread) [home_connect_async.callback_registery] Broadcasting event: Cooking.Common.Option.Hood.VentingLevel = Cooking.Hood.EnumType.Stage.FanStage01
2022-06-02 22:03:09 DEBUG (MainThread) [home_connect_async.callback_registery] Broadcasting event: Cooking.Common.Option.Hood.IntensiveLevel = Cooking.Hood.EnumType.IntensiveStage.IntensiveStageOff
2022-06-02 22:03:09 DEBUG (MainThread) [home_connect_async.callback_registery] Broadcasting event: BSH.Common.Option.ElapsedProgramTime = 0
2022-06-02 22:03:09 DEBUG (MainThread) [home_connect_async.homeconnect] Received event from SSE stream: MessageEvent(type='STATUS', message='STATUS', data='{"items":[{"timestamp":1654203789,"handling":"none","uri":"/api/homeappliances/BOSCH-DWK98PR60B-68A40E691C39/status/BSH.Common.Status.OperationState","key":"BSH.Common.Status.OperationState","value":"BSH.Common.EnumType.OperationState.Run","level":"hint"}],"haId":"BOSCH-DWK98PR60B-68A40E691C39"}', origin='https://api.home-connect.com', last_event_id='BOSCH-DWK98PR60B-68A40E691C39')
2022-06-02 22:03:09 DEBUG (MainThread) [home_connect_async.appliance] Starting to load appliance data for Hood (BOSCH-DWK98PR60B-68A40E691C39)
2022-06-02 22:03:09 DEBUG (MainThread) [home_connect_async.api] HTTP get /api/homeappliances/BOSCH-DWK98PR60B-68A40E691C39/programs/selected (code=404 count=78)
2022-06-02 22:03:09 DEBUG (MainThread) [home_connect_async.api] API call failed with code=404 error=SDK.Error.NoProgramSelected
2022-06-02 22:03:09 DEBUG (MainThread) [home_connect_async.appliance] Failed to load selected programs with error code=404 key=SDK.Error.NoProgramSelected
2022-06-02 22:03:09 DEBUG (MainThread) [home_connect_async.api] HTTP get /api/homeappliances/BOSCH-DWK98PR60B-68A40E691C39/programs/active (code=200 count=79)
2022-06-02 22:03:09 DEBUG (MainThread) [home_connect_async.appliance] Loaded 4 Options for active/Cooking.Common.Program.Hood.Automatic
2022-06-02 22:03:09 DEBUG (MainThread) [home_connect_async.appliance] Loaded data for active Program
2022-06-02 22:03:09 DEBUG (MainThread) [home_connect_async.api] HTTP get /api/homeappliances/BOSCH-DWK98PR60B-68A40E691C39/settings (code=200 count=80)
2022-06-02 22:03:09 DEBUG (MainThread) [home_connect_async.api] HTTP get /api/homeappliances/BOSCH-DWK98PR60B-68A40E691C39/settings/BSH.Common.Setting.PowerState (code=200 count=81)
2022-06-02 22:03:09 DEBUG (MainThread) [home_connect_async.api] HTTP get /api/homeappliances/BOSCH-DWK98PR60B-68A40E691C39/settings/Cooking.Common.Setting.Lighting (code=200 count=82)
2022-06-02 22:03:09 DEBUG (MainThread) [home_connect_async.api] HTTP get /api/homeappliances/BOSCH-DWK98PR60B-68A40E691C39/settings/Cooking.Common.Setting.LightingBrightness (code=200 count=83)
2022-06-02 22:03:09 DEBUG (MainThread) [home_connect_async.appliance] Loaded 3 Settings
2022-06-02 22:03:09 DEBUG (MainThread) [home_connect_async.api] HTTP get /api/homeappliances/BOSCH-DWK98PR60B-68A40E691C39/status (code=200 count=84)
2022-06-02 22:03:09 DEBUG (MainThread) [home_connect_async.appliance] Loaded 4 Statuses
2022-06-02 22:03:09 DEBUG (MainThread) [home_connect_async.api] HTTP get /api/homeappliances/BOSCH-DWK98PR60B-68A40E691C39/commands (code=200 count=85)
2022-06-02 22:03:09 DEBUG (MainThread) [home_connect_async.appliance] Loaded 0 Commands
2022-06-02 22:03:09 DEBUG (MainThread) [home_connect_async.api] HTTP get /api/homeappliances/BOSCH-DWK98PR60B-68A40E691C39/programs/available (code=200 count=86)
2022-06-02 22:03:09 DEBUG (MainThread) [home_connect_async.api] HTTP get /api/homeappliances/BOSCH-DWK98PR60B-68A40E691C39/programs/available/Cooking.Common.Program.Hood.Automatic (code=200 count=87)
2022-06-02 22:03:09 DEBUG (MainThread) [home_connect_async.appliance] Loaded 0 Options for available/Cooking.Common.Program.Hood.Automatic
2022-06-02 22:03:09 DEBUG (MainThread) [home_connect_async.appliance] Loaded 3 available Programs
2022-06-02 22:03:09 DEBUG (MainThread) [home_connect_async.appliance] Finished loading appliance data for Hood (BOSCH-DWK98PR60B-68A40E691C39)
2022-06-02 22:03:09 DEBUG (MainThread) [home_connect_async.callback_registery] Broadcasting event: Events.DATA_CHANGED = None
2022-06-02 22:03:09 DEBUG (MainThread) [home_connect_async.callback_registery] Broadcasting event: Events.DATA_CHANGED = None
2022-06-02 22:03:09 DEBUG (MainThread) [home_connect_async.callback_registery] Broadcasting event: BSH.Common.Status.OperationState = BSH.Common.EnumType.OperationState.Run
2022-06-02 22:03:09 DEBUG (MainThread) [custom_components.home_connect_alt] Published event to Home Assistant event bus: BSH.Common.Status.OperationState = BSH.Common.EnumType.OperationState.Run
2022-06-02 22:03:12 DEBUG (MainThread) [home_connect_async.homeconnect] Received event from SSE stream: MessageEvent(type='NOTIFY', message='NOTIFY', data='{"items":[{"timestamp":1654203792,"handling":"none","uri":"/api/homeappliances/BOSCH-DWK98PR60B-68A40E691C39/programs/active/options/Cooking.Common.Option.Hood.VentingLevel","key":"Cooking.Common.Option.Hood.VentingLevel","value":"Cooking.Hood.EnumType.Stage.FanOff","level":"hint"},{"timestamp":1654203792,"handling":"none","uri":"/api/homeappliances/BOSCH-DWK98PR60B-68A40E691C39/programs/active/options/Cooking.Common.Option.Hood.IntensiveLevel","key":"Cooking.Common.Option.Hood.IntensiveLevel","value":"Cooking.Hood.EnumType.IntensiveStage.IntensiveStage2","level":"hint"},{"timestamp":1654203792,"handling":"none","uri":"/api/homeappliances/BOSCH-DWK98PR60B-68A40E691C39/programs/active/options/BSH.Common.Option.ElapsedProgramTime","key":"BSH.Common.Option.ElapsedProgramTime","unit":"seconds","value":3,"level":"hint"}],"haId":"BOSCH-DWK98PR60B-68A40E691C39"}', origin='https://api.home-connect.com', last_event_id='BOSCH-DWK98PR60B-68A40E691C39')
2022-06-02 22:03:12 DEBUG (MainThread) [home_connect_async.callback_registery] Broadcasting event: Cooking.Common.Option.Hood.VentingLevel = Cooking.Hood.EnumType.Stage.FanOff
2022-06-02 22:03:12 DEBUG (MainThread) [home_connect_async.callback_registery] Broadcasting event: Cooking.Common.Option.Hood.IntensiveLevel = Cooking.Hood.EnumType.IntensiveStage.IntensiveStage2
2022-06-02 22:03:12 DEBUG (MainThread) [home_connect_async.callback_registery] Broadcasting event: BSH.Common.Option.ElapsedProgramTime = 3
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 45 (45 by maintainers)
I think I understand what’s the reason for this but I’m going to have to find some time to fix it. Hopefully in the coming days.