When using knx.telegram as trigger and the condition for it to be 0 will for some reason not work with trigger.value but does work with trigger.payload
From the trigger message i can see its an actual 0 or 1 its receives and not a string.
You can always just check the value in the automation editor directly (when it fires), automation traces debugger or just in HAs group monitor.
Usually DPT 1 has string values like “off” or “active” depending on the DPT read from the imported project file. If you don’t have imported a project, or the GA isn’t included, value will always be null - like shown in your example.
TLDR: for DPT 1, just use trigger.payload. It’s more resilient.
For things like DPT 9, not so much… there value is the better choice. You can also configure the trigger with type to get a value - in case you don’t have a project file or you are working on a blueprint (and thus don’t know if users have one).
What info should i provide in a PR? I take it i should go here: Pull requests · XKNX/xknx · GitHub
Should i provide code? where do i need to look?
Sorry for all these basic questions, but better be safe then sorry.
Also now that you pointed me to that list, adding type: switch lets me use off in trigger.value
Thanks again, i think i will look at the doc and suggest an edit for the KNX types so they include the DTP1.x types KNX - Home Assistant
Oh well, then it seems it’s already supported didn’t know that.
Great! Just be aware that these are not usable as sensor types, so it would need proper distinction (extra list or something like that) to avoid confusion.