Hi,
I’ve been trying to get Home Assistant to play well with KNX, but I ran into some problems. While HA seems to be able to connect to the KNX gateway, the gateway status led flickers red whenever I try to push a telegram its way, indicating a communications failure somewhere on the KNX bus.
On rebooting the HA server the following output is printed to the log file.
2019-02-20 13:19:32 ERROR (MainThread) [homeassistant.components.light] Error while setting up platform knx
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 128, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=hass.loop)
File "/usr/lib/python3.5/asyncio/tasks.py", line 400, in wait_for
return fut.result()
File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
raise self._exception
File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
result = coro.send(None)
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/light/knx.py", line 46, in async_setup_platform
async_add_entities_config(hass, config, async_add_entities)
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/light/knx.py", line 72, in async_add_entities_config
group_address_color_state=config.get(CONF_COLOR_STATE_ADDRESS))
File "/srv/homeassistant/lib/python3.5/site-packages/xknx/devices/light.py", line 38, in __init__
after_update_cb=self.after_update)
File "/srv/homeassistant/lib/python3.5/site-packages/xknx/devices/remote_value_switch.py", line 35, in __init__
device_name=device_name, after_update_cb=after_update_cb)
File "/srv/homeassistant/lib/python3.5/site-packages/xknx/devices/remote_value.py", line 25, in __init__
group_address = GroupAddress(group_address)
File "/srv/homeassistant/lib/python3.5/site-packages/xknx/knx/address.py", line 173, in __init__
self.raw = self.__string_to_int(address)
File "/srv/homeassistant/lib/python3.5/site-packages/xknx/knx/address.py", line 200, in __string_to_int
raise CouldNotParseAddress(address)
xknx.exceptions.exception.CouldNotParseAddress:
20192019-02-20 22:21:14 WARNING (MainThread) [xknx.log] Could not read value of <Light name=“Living Room Wall” switch=“GroupAddress(“2/2/4”)/GroupAddress(“2/2/3”)//Value.ON” brightness=“GroupAddress(“2/2/2”)/groupAddress(“2/2/1”)/None/None” /> 2/2/3
Subsequent actions (such as turning on a light in the HA interface) don’t generate a log entry, but, as mentioned, don’t execute properly on the KNX bus and as such, don’t turn on the light.
The ETS bus monitor also seems to capture th eKNX telegrams, but since I am new to ETS, I’m not sure on how to debug this traffic further. Below is a screenshot of an ETS telegram generated by HA.
And finally, this is an excerpt from my KNX light config:
# kitchen lights
- platform: knx
name: 'Kitchen Island'
address: '2/2/39'
state_address: '2/2/43'
brightness_address: '2/2/40'
brightness_state_address: '2/2/41'
- platform: knx
name: 'Kitchen Bar'
address: '2/2/26'
state_address: '2/2/30'
brightness_address: '2/2/27'
brightness_state_address: '2/2/28'
- platform: knx
name: 'Kitchen Wall'
address: '2/2/52'
state_address: '2/2/56'
Any help would be greatly appreciated.