KNX Wall Switch

Hi,

Can someone please tell me where I am supposed to configure my KNX wall switches? I am not sure if they are a sensor, since the KNX integration doesn’t support DPT 1.001 or 3.007… and they are definitely not switches since this is exclusively for switch actuators, or at least thaths what I believe.

Why you need to know this?
To intergration in HA you just need know the group addresses of KNX.

Hi,

Because I have been using the node-red integration to control my Hue lights with my knx wall switches, but is a mess of nodes now. I want to do it directly with a ha automation but I am at a loss as how to… and I have the impression that a physical wall switch has to be configured somehow. Can an automation read GA’s directly?

In that case I think you should make a sensor in HA with the GA of the KNX switch.

I am trying this in my sensor.yaml:

  • platform: knx
    name: Schalter Arbeit/TV
    address: ‘5/1/19’

  • platform: knx
    name: Dimmer Arbeit/TV
    address: ‘5/2/19’

HA doesn’t likes it, refuses to restart after saving the file. I guess that the sensor type is missing, but what I am supposed to use?

Try this:

- platform: knx
  name: Schalter_Arbeit_TV
  state_address: '5/1/19'
  sync_state: False

Didn’t work :anguished:

Try to check the configuration before restart the HA.
You will see what kind of error you have.

I think I found your problem.
It must be binary_sensor not sensor.

I can try binary sensor next, but I moved it to switch.yaml and it worked like this:

  • platform: knx
    name: Schalter_Arbeit_TV
    address: ‘5/1/19’

Yes. It also works.
Switch and binary_sensor works with one bit.

Ok, will be trying to create an automation to turn a hue light on and off, but it would be interesting to know if dimming works.

Burningstone was trying to implemet something in Appdaemon some tiem ago, and it partially worked, its very strange but today while experimenting with the automations something happened and the the app worked and it was possible to dimm the hue lights with a knx wall switch, but then the deconz integration started having problems so I had to go back to a working configuration and now is not working… nothing is perfect I guess.

The dimming can be more difficult to implement.
To on/off and dim you will need 1 bit and 4 bits on the knx switch.
Good luck!

Switching is working, will try dimming next.

Thanks for your help!