question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Home Connect integration - 2 out of 3 devices not updating at all.

See original GitHub issue

The problem

I had Home Connect integration in use for like 8 days or so, now “it stopped working” 3 days ago, flooding in the Logs something like 429 - Too many requests exceeded 1000 requests per day, waiting for 5353535 seconds or something, which I don’t have anywhere anymore and not getting this error anymore. Once the 24h time period was over, my integration still didn’t work, so I decided to reinstall it:

  • deleted the integration
  • removed the settings from config/configuration.yaml
  • removed the Home Connect developer application I created
  • reloaded the configs and restarted Raspberry Pi, just to be sure
  • created a new Home Connect developer application, with new Client ID and Client Secret
  • added the secrets in config/configuration.yaml
  • reloaded the configs and restarted the Rasp to be sure
  • added the Home Connect integration

Now my Home Assistant sees my Dishwasher and all of its entities gets updated, I can control it just the way it used to work before. But for my Washing Machine and Dryer, the entities are not being updated. Only entity that gets updated every now and then is the Door open/closed, but the power seems to be updated really randomly in HA (I haven’t found when or why they do update, but it’s really seldom) and any other entity never gets updated. I cannot control these two devices at all. Trying to power them on or off, doesn’t work. What’s funny is that I can control them in Home Connect mobile application just fine, I can see the statuses perfectly, etc.

I’m also getting bunch of errors, such as:

2020-10-23 22:40:21 WARNING (Thread-11) [homeconnect.sseclient] Exception while reading event: 
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/homeconnect/sseclient.py", line 81, in __next__
    next_chunk = next(self.resp_iterator)
StopIteration
2020-10-23 22:40:21 WARNING (Thread-10) [homeconnect.sseclient] Exception while reading event: 
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/homeconnect/sseclient.py", line 81, in __next__
    next_chunk = next(self.resp_iterator)
StopIteration
2020-10-23 22:40:21 WARNING (Thread-12) [homeconnect.sseclient] Exception while reading event: 
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/homeconnect/sseclient.py", line 81, in __next__
    next_chunk = next(self.resp_iterator)
StopIteration
2020-10-23 22:52:00 ERROR (MainThread) [homeassistant.components.home_connect.switch] Error while trying to turn on device: {'key': 'SDK.Error.HomeAppliance.Connection.Initialization.Failed', 'description': 'HomeAppliance is offline'}
2020-10-23 22:52:01 ERROR (MainThread) [homeassistant.components.home_connect.switch] Error while trying to turn on device: {'key': 'SDK.Error.HomeAppliance.Connection.Initialization.Failed', 'description': 'HomeAppliance is offline'}
2020-10-23 22:55:49 ERROR (MainThread) [homeassistant.components.home_connect.switch] Error while trying to turn off device: {'key': 'SDK.Error.InvalidSettingValue', 'description': 'Key BSH.Common.Setting.PowerState has unknown enum type or enum member BSH.Common.EnumType.PowerState.Off.'}
2020-10-23 22:55:49 ERROR (MainThread) [homeassistant.components.home_connect.switch] Error while trying to turn off device: {'key': 'SDK.Error.InvalidSettingValue', 'description': 'Key BSH.Common.Setting.PowerState has unknown enum type or enum member BSH.Common.EnumType.PowerState.Off.'}
2020-10-23 22:55:50 ERROR (MainThread) [homeassistant.components.home_connect.switch] Error while trying to turn off device: {'key': 'SDK.Error.InvalidSettingValue', 'description': 'Key BSH.Common.Setting.PowerState has unknown enum type or enum member BSH.Common.EnumType.PowerState.Off.'}
2020-10-23 22:55:50 ERROR (MainThread) [homeassistant.components.home_connect.switch] Error while trying to turn on device: {'key': 'SDK.Error.InvalidSettingState', 'description': 'BSH.Common.Setting.PowerState currently not available or writable'}
2020-10-23 22:55:50 ERROR (MainThread) [homeassistant.components.home_connect.switch] Error while trying to turn on device: {'key': 'SDK.Error.InvalidSettingState', 'description': 'BSH.Common.Setting.PowerState currently not available or writable'}
2020-10-23 22:55:50 ERROR (MainThread) [homeassistant.components.home_connect.switch] Error while trying to turn on device: {'key': 'SDK.Error.InvalidSettingState', 'description': 'BSH.Common.Setting.PowerState currently not available or writable'}
2020-10-23 22:55:50 ERROR (MainThread) [homeassistant.components.home_connect.switch] Error while trying to turn on device: {'key': 'SDK.Error.InvalidSettingState', 'description': 'BSH.Common.Setting.PowerState currently not available or writable'}
2020-10-23 22:55:50 ERROR (MainThread) [homeassistant.components.home_connect.switch] Error while trying to turn off device: {'key': 'SDK.Error.InvalidSettingValue', 'description': 'Key BSH.Common.Setting.PowerState has unknown enum type or enum member BSH.Common.EnumType.PowerState.Off.'}

I’m running out of ideas what to do. I think it’s quite “random” that Dishwasher works perfectly, but Washing Machine and Dryer doesn’t work pretty much at all.

Environment

  • Home Assistant Core release with the issue: Home Assistant 0.116.4
  • Last working Home Assistant Core release (if known): 0.116.3 or 0.116.2 ?
  • Operating environment (OS/Container/Supervised/Core): Home Assistant OS
  • Integration causing this issue: Home Connect
  • Link to integration documentation on our website: https://www.home-assistant.io/integrations/home_connect/

Problem-relevant configuration.yaml

home_connect:
  client_id: <client id here>
  client_secret: <client secret here>

Traceback/Error logs

2020-10-23 22:40:21 WARNING (Thread-11) [homeconnect.sseclient] Exception while reading event: 
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/homeconnect/sseclient.py", line 81, in __next__
    next_chunk = next(self.resp_iterator)
StopIteration
2020-10-23 22:40:21 WARNING (Thread-10) [homeconnect.sseclient] Exception while reading event: 
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/homeconnect/sseclient.py", line 81, in __next__
    next_chunk = next(self.resp_iterator)
StopIteration
2020-10-23 22:40:21 WARNING (Thread-12) [homeconnect.sseclient] Exception while reading event: 
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/homeconnect/sseclient.py", line 81, in __next__
    next_chunk = next(self.resp_iterator)
StopIteration
2020-10-23 22:52:00 ERROR (MainThread) [homeassistant.components.home_connect.switch] Error while trying to turn on device: {'key': 'SDK.Error.HomeAppliance.Connection.Initialization.Failed', 'description': 'HomeAppliance is offline'}
2020-10-23 22:52:01 ERROR (MainThread) [homeassistant.components.home_connect.switch] Error while trying to turn on device: {'key': 'SDK.Error.HomeAppliance.Connection.Initialization.Failed', 'description': 'HomeAppliance is offline'}
2020-10-23 22:55:49 ERROR (MainThread) [homeassistant.components.home_connect.switch] Error while trying to turn off device: {'key': 'SDK.Error.InvalidSettingValue', 'description': 'Key BSH.Common.Setting.PowerState has unknown enum type or enum member BSH.Common.EnumType.PowerState.Off.'}
2020-10-23 22:55:49 ERROR (MainThread) [homeassistant.components.home_connect.switch] Error while trying to turn off device: {'key': 'SDK.Error.InvalidSettingValue', 'description': 'Key BSH.Common.Setting.PowerState has unknown enum type or enum member BSH.Common.EnumType.PowerState.Off.'}
2020-10-23 22:55:50 ERROR (MainThread) [homeassistant.components.home_connect.switch] Error while trying to turn off device: {'key': 'SDK.Error.InvalidSettingValue', 'description': 'Key BSH.Common.Setting.PowerState has unknown enum type or enum member BSH.Common.EnumType.PowerState.Off.'}
2020-10-23 22:55:50 ERROR (MainThread) [homeassistant.components.home_connect.switch] Error while trying to turn on device: {'key': 'SDK.Error.InvalidSettingState', 'description': 'BSH.Common.Setting.PowerState currently not available or writable'}
2020-10-23 22:55:50 ERROR (MainThread) [homeassistant.components.home_connect.switch] Error while trying to turn on device: {'key': 'SDK.Error.InvalidSettingState', 'description': 'BSH.Common.Setting.PowerState currently not available or writable'}
2020-10-23 22:55:50 ERROR (MainThread) [homeassistant.components.home_connect.switch] Error while trying to turn on device: {'key': 'SDK.Error.InvalidSettingState', 'description': 'BSH.Common.Setting.PowerState currently not available or writable'}
2020-10-23 22:55:50 ERROR (MainThread) [homeassistant.components.home_connect.switch] Error while trying to turn on device: {'key': 'SDK.Error.InvalidSettingState', 'description': 'BSH.Common.Setting.PowerState currently not available or writable'}
2020-10-23 22:55:50 ERROR (MainThread) [homeassistant.components.home_connect.switch] Error while trying to turn off device: {'key': 'SDK.Error.InvalidSettingValue', 'description': 'Key BSH.Common.Setting.PowerState has unknown enum type or enum member BSH.Common.EnumType.PowerState.Off.'}

Additional information

System Health

arch aarch64
chassis embedded
dev false
docker true
docker_version 19.03.11
hassio true
host_os HassOS 4.15
installation_type Home Assistant OS
os_name Linux
os_version 4.19.127-v8
python_version 3.8.5
supervisor 249
timezone Europe/Helsinki
version 0.116.4
virtualenv false

Lovelace

dashboards 1
mode storage
resources 0
views 6

As seen in the images below, both devices are powered on, but Home Assistant shows “unavailable”. image image

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:36 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
Kirbocommented, Jul 25, 2021

I agree, still an issue.

4reactions
ZTHawkcommented, Jul 24, 2021

This is still applicable: OS Core 2021.7.4

Read more comments on GitHub >

github_iconTop Results From Across the Web

Siemens Home Connect Integration not working as expected
So at this moment I have integrated my Siemens washer and dryer to Home Assistant and it shows 2 devices and 47 entities....
Read more >
Frequently Asked Questions - Home Connect
Can appliances be accessed by several devices at the same time? ... We take these rules very seriously and can suspend access by...
Read more >
Surface Pro 3 update history
Surface updates are released in stages—not every Surface will receive updates at the same time, but they'll be delivered to all devices.
Read more >
Connect smart home devices in the Google Home app
Set up smart home devices. If you haven't already done so, follow the steps provided by the device maker to set up your...
Read more >
iOS 16 - New Features
See all the latest features, enhancements, app updates, and more in iOS 16 for ... iOS suggests Home Screen pages with apps and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found