Issue with KNX switch and correct state

Hi,

I’m having issues with a KNX switch getting the correct state.

This is the switch:

- name: "Haard"
  address: "4/3/4"
  state_address: "4/3/2"

When the GA 4/3/4 is switched, the status should be returned via GA 4/3/2. However, the status is not correctly updated.

I think the cause is that the DPT of this status-GA is not a simple 1.001 on/off. According to my ETS group monitor it is a DPT 5.001.

I created a sensor to retrieve that value in HA:

  - name: "Haard Status - 1"
    state_address: "4/3/2"
    type: 1byte_unsigned

With the above type definition, the sensor can have a value “0” or “1”.

My first idea was to create an automation that updates the state of the switch based on my sensor. But if I do that, I actually trigger the switch itself - and the status will change, triggering the switch again etc…

So I don’t know how to keep the status of my switch correct.

Any help would be greatly appreciated.

Well what ETS “thinks” is whatever you told it to think. Either via the object of the device or whatever you set the group to manually.

So lets start at the basics: What device in KNX is it and what object is assigned to these group addresses?
A screenshot of bot h the device and group would be handy.

Hi Charles,
Thank you for your quick reply.

The device is a Gira 1057 switching actuator. I use it as an “interface” to switch on my fireplace. What I need to do is to switch on 4/3/0 and 4/3/1 for 6 seconds, and then switch them back off (I can do that via an automation).

If done succesfully, the state is returned via 4/3/2:

And a very practical issue: the switching actuator is in an almost unreachable spot. In order to hit the programming button, I would need to… dismantle the fireplace up to a certain level… So solutions without changing the programmation are a great plus. :wink:

Ok, I think I was able to solve it using a template switch:

Initial tests seem to show that it works!

2 Likes

You only need to press the program button when assigning an address. The 1.1.x one (or whatever line yours is on)
After that you can program it without needing to press it since ETS now knows where it “lives”

For the Gira 1057 00, you can define how the inputs react and just a bit value is also possible, but that might break how the system was programmed and whatever is also looking at those status groups :smiley:

So this is a great sollution

Hi Charles,
Thank you for your feedback!

When programming an KNX device, I can choose between “full download” and “partial download”. For the type of change I want to do, only a “partial download” should suffice. However, even when I do that, ETS asks me to press the programming button.

Maybe it is due to the fact that the last time this device was programmed was 11 years ago (according to my logs). Maybe it expects to press the programming button now and then, or maybe it is related to an ETS upgrade… I don’t know.

Changing the input to a bit value would indeed be a much cleaner solution.

Doing an Download Application will fix that. Partial checks if ETS thinks i has the address set and will ask for the prog button when the checkmark isnt there
image

1 Like

You can use the ETS Diagnostics tab to toggle a devices programming-LED. That is essentially the same as pushing that button :wink:

1 Like

That actually worked! Thanks!!!

I didn’t know that either! :face_with_open_eyes_and_hand_over_mouth:
Thanks, that is very usefull. I’ve spend so many times running up the stairs, or going to that KNX device outside to set a programming button. :grinning: