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

Everything working(?) but lots of error messages in log #7

Open
Rikkie80 opened this issue Nov 10, 2020 · 1 comment
Open

Everything working(?) but lots of error messages in log #7

Rikkie80 opened this issue Nov 10, 2020 · 1 comment

Comments

@Rikkie80
Copy link

Since a couple of days my log is flooded with error messages:

2020-11-10 11:09:22 ERROR (MainThread) [homeassistant.helpers.entity] Update for switch.ambilight_hue fails
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 278, in async_update_ha_state
    await self.async_device_update()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 474, in async_device_update
    raise exc
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/philips_ambilight+hue/switch.py", line 91, in update
    self.getState()
  File "/config/custom_components/philips_ambilight+hue/switch.py", line 81, in getState
    ahstat = fullstate['values'][0]['value']['data']['value']
KeyError: 'data'

I'm running HA 0.117.5 and my TV is an 65OLED854 on TPM191E _ 101.001.079.005

@Rikkie80
Copy link
Author

Ok, think I found it...

After the last TV update it seems that the ID for "ambilight_hue_off" changed to 2131230783... So my switch configuration is now:

- platform: philips_ambilight+hue
  name: Ambilight+Hue
  host: !secret tv_woonkamer
  username: !secret tv_username
  password: !secret tv_password
  id: 2131230783
  scan_interval: 5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant