KNX: Set lux target value

Hello guys,
today I’ve integrated KNX into my Home Assistant and it works quite well (I have some issues getting the state values “KNX bus did not respond in time to GroupValueRead request for: 1/0/23”… but that’s not important for me at the moment :slight_smile: ). More important is the integration of a KNX functionality provided by my Gira X1 server. In the mobile application I can set a target value in lux. After setting this value the KNX light will dim until it reaches the defined lux level. So in general its a kind of diming (in lux and not percent).

Is there any possibility to set this target lux level in an automation? I searched the knx integration but I didn’t saw anything regarding sending a DPT 9.004 value, which is a 2 byte float value. I’ve tried the knx.send service but it is quite complicated for me and I didn’t get it working… After a few hours it comes to my mind that the climate integration sends the same type of data to knx bus. So I’ve tried to set up the target lux knx-adress as a climate component. And it works…
So, if I change the temperature of my fictive climate to 250°C, the target lux level adapts this value and my light is diming towards 250 lux.

Is this the only way to integrate the target lux functionality or did I miss something obvious :flushed: ?

I hope, I could explain my problems understandably. Thank you very much for your commitment!

Larsstr

Have you tried the expose sensor function? https://www.home-assistant.io/integrations/knx/ You could combine it with a template sensor.

Hey @farmio, thanks for your fast answer! Am I right, that exposing of sensors means that I provide data of a Home Assistant sensor to my knx bus? Maybe I misunderstood the function but when adjusting the target value I have to send a telegram to an existing KNX address. So I don’t have to create a new address, I have to send (proper formatted 2 byte float values as DPT 9.004) values to an existing address.

Therefore exposing a HA sensor would not lead to the goal, would it?

Sure, it does exactly what you have stated. It sends a value from a HA sensor to a Knx group address.
You configure the expose sensor with the group address and the right DPT (I think it would be “illuminance” but better double check with the docs)

Oh wow, I misunderstood the description of the exposing functionality. Now it works like a charm – thank you very much!

Interesting topic!
Question: does this also allow to update the exposed sensor with slider in the HA interface if the KNX object value changes internally?