Since the latest update, all my automations that contain hue lights aren’t working anymore. The automation triggers correctly, but doesn’t do anything.
Example Automation I’m using:
- alias: "Harmony Film Aktivität"
initial_state: 'on'
trigger:
platform: state
entity_id: remote.wohnzimmer
condition:
condition: or
conditions:
- condition: template
value_template: '{{ trigger.to_state.attributes.current_activity == "Fire TV sehen" }}'
- condition: template
value_template: '{{ trigger.to_state.attributes.current_activity == "Blu-Rays" }}'
- condition: template
value_template: '{{ trigger.to_state.attributes.current_activity == "Heimkino" }}'
action:
- service: light.turn_off
entity_id:
- light.wohnzimmer
- light.deckenlampe
- service: switch.turn_on
entity_id:
- switch.66376420ecfabc2a8296_1
- switch.66376420ecfabc2a8296_2
- service: light.turn_on
entity_id:
- light.led_leiste
data:
brightness: 255
- service: light.turn_on
entity_id:
- light.leinwand
- service: automation.turn_on
entity_id:
- automation.flurlicht_einschalten_wahrend_kinobetrieb
- service: automation.turn_off
entity_id:
- automation.flurlicht_einschalten_wenn_bewegung
I get the following error in my log files:
Error while executing automation automation.harmony_film_aktivitat. Unknown error for call_service at pos 1:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/homeassistant/components/automation/__init__.py", line 375, in action
await script_obj.async_run(variables, context)
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/script.py", line 131, in async_run
await self._handle_action(action, variables, context)
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/script.py", line 210, in _handle_action
action, variables, context)
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/script.py", line 299, in _async_call_service
context=context
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/service.py", line 85, in async_call_from_config
domain, service_name, service_data, blocking=blocking, context=context)
File "/usr/local/lib/python3.7/site-packages/homeassistant/core.py", line 1133, in async_call
self._execute_service(handler, service_call))
File "/usr/local/lib/python3.7/site-packages/homeassistant/core.py", line 1155, in _execute_service
await handler.func(service_call)
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity_component.py", line 188, in handle_service
self._platforms.values(), func, call, service_name
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/service.py", line 278, in entity_service_call
future.result() # pop exception if have
File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/service.py", line 292, in _handle_service_platform_call
await getattr(entity, func)(**data)
File "/usr/local/lib/python3.7/site-packages/homeassistant/components/hue/light.py", line 412, in async_turn_off
await self.light.set_state(**command)
File "/usr/local/lib/python3.7/site-packages/aiohue/lights.py", line 117, in set_state
json=data)
File "/usr/local/lib/python3.7/site-packages/aiohue/bridge.py", line 63, in request
data = await res.json()
File "/usr/local/lib/python3.7/site-packages/aiohttp/client_reqrep.py", line 1036, in json
return loads(stripped.decode(encoding))
File "/usr/local/lib/python3.7/json/__init__.py", line 348, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.7/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/lib/python3.7/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 79 (char 78)
I’m currently running hass.io 0.89.1 on a Raspberry Pi with Python 3.7.2
Do you have any idea how to fix this?