KNX with multiple Status Addresses

Hi,

Am new to HA and this whole home automation scene. Been experimenting with Openhab and HA. Have a KNX system setup at home. These are activated by pushbutton switches with LEDs which show the status.

For example, in Home Assistant config I will have:

- platform: knx
  name: Light_1
  address: '11/1/36'
  state_address: '11/1/39'
  brightness_address: '11/1/38'
  brightness_state_address: '11/1/40'
- platform: knx
  name: Light_2
  address: '11/1/41'
  state_address: '11/1/44'
  brightness_address: '11/1/43'
  brightness_state_address: '11/1/45'

This works exactly as expected. Switching on the lights from the pushbutton changes the status on HA. Similarly, switching the lights from HA changes the status on the pushbutton LED.

I run into an issue as some of these lights are grouped together in the KNX system with its own Group Address. In this example, I call it “Group_of_Lights”.

- platform: knx
  name: Group_of_Lights
  address: '12/1/11'
  #state_address: 'x'
  brightness_address: '12/1/12'
  #brightness_state_address: 'x'

The system at home is configured so that a single pushbutton turns on/off both Light_1 and Light_2.

The problem arises when using the pushbutton to turn on the Group_of_Lights.

From an ‘off’ state, pushing the pushbutton switch does the following:

  1. Turns on Light_1 and Light_2
  2. Pushbutton LED updates to show that it is in the ‘on’ state.
  3. Light_1 and Light_2 status on HA is updated to the ‘on’ state.
  4. Group_of_Lights remain unchanged

Another situation also arises when the Group_of_Lights are switched on through HA:

  1. Light_1 and Light_2 status change to ‘on’
  2. Group_of_Lights status changes to ‘on’
  3. Pushbutton remains in ‘off’ state

There are many more situations where the physical pushbutton and the HA state goes out of sync.

I can’t say that this was unexpected since the Group_of_Lights state_address has not been filled in. Unfortunately, I’ve been told by the KNX system vendor that there is not a distinct state_address that is present.

Working with OpenHab previously, this portion was overcome by having the config accept two state_addresses for a single item. The config was like so:

Type dimmer        : Group_of_Lights    "Dimmer"      [ switch="12/1/11+<11/1/39+<11/1/44", position="12/1/13+<11/1/40+<11/1/45", increaseDecrease="12/1/12" ]

This seems to be the was ETS5 has the configuration too (I’m quite clueless on ETS5 though…). I’ve tried quite a few experiments to emulate this on HA to no avail. For example:

state_address: '11/1/39 + 11/1/44'
state_address: '11/1/39 +< 11/1/44'
state_address: '11/1/39,11/1/44'

Does anyone have any insight to this? Many many thanks in advance.

4 Likes

Hi, did you manage to overcome this issue somehow? I have the same problem…

1 Like

Same problem here…
Would be nice to solve this cause HA doesn’t get the state change if the group is activated.
reminds me of this: https://xkcd.com/979/