Homematic IP cloud integration: switch error on turn_on event: HmipWrongStatusError(400)

hi there

Hope someone can help: Run HA on a RPI with the homematic ip cloud integrations.

Since 2 weeks I am no longer able to turn on / off the switch. Interestingly the manuel turn on / off at the device updates the status in HA. But the turn on event in HA gives following error: HmipWrongStatusError(400) and generates this log:

Logger: homeassistant.components.websocket_api.http.connection
Source: components/homematicip_cloud/switch.py:108
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 21:07:48 (2 occurrences)
Last logged: 21:08:15

[547992883984] HmipWrongHttpStatusError(400)
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py”, line 185, in handle_call_service
await hass.services.async_call(
File “/usr/src/homeassistant/homeassistant/core.py”, line 1491, in async_call
task.result()
File “/usr/src/homeassistant/homeassistant/core.py”, line 1526, in _execute_service
await handler.job.target(service_call)
File “/usr/src/homeassistant/homeassistant/helpers/entity_component.py”, line 213, in handle_service
await self.hass.helpers.service.entity_service_call(
File “/usr/src/homeassistant/homeassistant/helpers/service.py”, line 658, in entity_service_call
future.result() # pop exception if have
File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 830, in async_request_call
await coro
File “/usr/src/homeassistant/homeassistant/helpers/service.py”, line 695, in _handle_entity_call
await result
File “/usr/src/homeassistant/homeassistant/components/homematicip_cloud/switch.py”, line 108, in async_turn_on
await self._device.turn_on(self._channel)
File “/usr/local/lib/python3.9/site-packages/homematicip/aio/device.py”, line 42, in turn_on
return await self.set_switch_state(True, channelIndex)
File “/usr/local/lib/python3.9/site-packages/homematicip/aio/device.py”, line 38, in set_switch_state
return await self._connection.api_call(url, data)
File “/usr/local/lib/python3.9/site-packages/homematicip/aio/connection.py”, line 97, in api_call
raise HmipWrongHttpStatusError(result.status)
homematicip.base.base_connection.HmipWrongHttpStatusError: HmipWrongHttpStatusError(400)

Anybody can help me? thanks!

Michael

I have the same exact issue. I am no longer able to turn on / off the switch. everything else seems to work fine (reading sensors etc and setting heating values). The status of these switches are updated fine when using the homematic ip app in hass.

I’ve made a lot of research and wrote in groups… You are the first with the same issue… Can you isolate a bit? Home assistant update? Hmip Update?

issue started after home assistant update and i guess it begon in version core_2021.9.6`. the previous version i ran was core_2021.8.8. Thats what noticed.

i did a couple of partitial restores until core-2021.7.4. no succes. i can try a full of begin this year.

full restore to core-2021.6.4 and needed to re-integrate the hmip but same result. everything else but the buttons are working and giving me the same error like you (http400).

Thanx for your work on this…
It brings me more and more to my initial thoughts about homematic did a change on their side…. What do you think?

yes sir me to. Im not sure if you noticed, but you can now enable the “hot water req” trough the homematic ip app. i thought this was not available. maybe im wrong but yes i think there was a change at the hmip side. I did a packet capture but the connection is secured obvousily so i cant see the http request methods. I think we need to open a case with the hmip integration developers and see if they can make a fix. obvousily they arent aware of this.

I just opened an issue:

Hope this is right, i am new on github…

1 Like

great thanks trying to follow. Should be something small like the formation of the http request. The developer somehow should see the difference.

Hi Michel,

Did you get any other info or tryed to fix this issue?

Hi Danny
I opened an issue on github:
https://github.com/coreGreenberet/homematicip-rest-api/issues/425

Unfortunately no answers untill now… what about you?

ok. No did not spend time on it. hoped there where some reaction from the developers. I think this is just something small like they change the paramters from 1&0 to on/off…

still no luck for a fix i guess ?