I try to set a helper variable to on or off with an automation, when a KNX datagram arrives:
The Automation trigger is working fine, but the conditions never match.
Could anyone explain why - the documentation about knx.telegram isn’t helpful for me at this point?
I think the telegram.* things in the docs are actually a doc-bug - it should be trigger.*.
You can see that when you trigger the trigger manually (from ETS or a button) and then klick the blue/yellow bar at the top.
See Home Assistant - KNX: trigger actions from a KNX switch
Thank you! It is working fine now.
I did a second mistake: Use of the “value” trigger variable instead of “payload”.
The “value” variable is always “null”
Be aware that .payload contains a list for DPT other than 1,2,3. So eg. a percent value can be accessed trigger.payload[0] == 255 which is equivalent to trigger.value == 100 using project data.
That only you can answer.
If it is DPT 1 you would be on the safe side if you used HA 2024.8.2 - value would be a string then. But using .payload for DPT 1 is perfectly fine (and independent of project file changes).
Well, I found it.
These kind of groups had DPT “automatic” assigned in ETS. After setting this to DPT 1 and a reupload of the project file to HA, it is working fine.