I tried to follow the documentation to create a binary sensor in HA using my KNX sensor but I cannot seem to get it right. I have got the illuminance working perfectly.
I have the GIRA Komfort 2225 00/ I01 Presence detector.
That depends on the configuration of the divide. Normally that one also used to switch some light etc.
The input object may be one used to cascade multiple motion sensors for a single room etc.
If you don’t find a proper object you can post a screenshot of ETS showing the group objects here.
it outputs 1 when detecting motion… sounds like a motion sensor to me.
If you want different settings than what you use to switch the light (eg. Independent of ambience light level) you’d need to configure a second channel (if the device supports that).
I’ll give that a go. I’ll use a different group address (I can enable more than one function block but just to test)
Edit: Nope that didn’t work. I’m pretty sure that group object FB1 - Output 1 only decides which group address to switch when it detects motion but isn’t the group object that DETECTS motion.
What do you mean by that?
Is your goal to have a binary sensor in HA that turns 1 when there is motion detected by that device? Then use such an output.
Yeah, the goal is basically to have a binary sensor that reads the motion the KNX sensor is getting. For example the brightness sensor output in the screenshot works and gives me lux value in HA, for the motion sensor I just want a “on/off” state.
But I do not have a motion “output” option as I do a brightness sensor output option.
You didn’t add the new group address to the existing channel 1 output, did you? That wouldn’t work - you either use the GA already connected (sending GA) or use a new channel.
A group object always only sends to the sending GA - that is the first listed. If you add more GAs to a object in ETS these are only used to update internal values, but it will never be sent to them.
Your “Output” object is the motion output.
I only had one group address allocated the “output” object, I didn’t add more.
To clarify I’ll retest. I have group object 0/2/2 - “motion detection” that will be linked to “Output 1”
And add the following code of my home assistant KNX file (have additional details above the file does work as my lights and brightness sensor is in it)
That looks fine Have you configured any ambience light thresholds for that output? Do you see any Telegrams to 0/2/2 in ETS GroupAddressMonitor (Diagnostics)?
Did you restart the HA Knx integration after changing yaml?
I have configured ambience light thresholds for that output.
I have restarted KNX entirely after changing yaml and updating information on the KNX sensor.
I don’t know how to check the telegrams sorry
Edit: I think I did the telegram check correctly and when the device detects motion (shows the blue light when I move) there is no telegram to 0/2/2 - so the group object must be wrong?
I really think it is the right object. Maybe have a look through the manual of the detector.
Maybe the blue light is independent of light thresholds.
Did the previously connected light work fine?
I’d also recommend to set a proper individual address for your Knx ip interface and its tunneling endpoints.
The previously group address with the light worked perfectly every time.
The blue light is for motion. If I wave my arm or even move it triggers the “blue light/motion” and would previously immediately turn on the previous light.
The blue light can be turned off in settings its just for set up and confirming the device is indeed receiving motion.
I found this in the manual - I have changed the device to “extension” but still can’t find the movement function
I figured it out!! I had to use a different function block as a extension to the primary function block! The bus now gets a reading when there is motion to the group address!!
I just need to get it to home assistant now because it requires knx_event because it only gives an “ON” value which I don’t know how to do!
The easier way is definitely to configure a switching output (1 and 0) on the sensor (just like you did for your light) and use it as entity in HA.
That way you can configure the time from detection (1) to 0 (no more movement detected) in ETS rather than doing that somehow in a HA automation.
Else, event configuration is described in the documentation. knx_event can then be used in automations.
Thanks man for firstly going through this crazy thing with me haha.
I would prefer to just use it as an event for automations for now but I tried looking at the documentation but I can’t get me head around it?
Any examples you could give? It seems the trigger required won’t let you only use the read function?
I do get a motion response now on the bus diagnostics sending telegrams to my motion sensor group address - so I know it works.
I event set up a switch in HA which I can turn “off” via HA but it won’t turn back “off” after turning on via the motion detection. (This is part is just so you know it works)
Any examples on how I’d actually create the event trigger?