I am using KNX, which can fire events when something happen, for some things i want to use events instead of state changes to trigger an automation on button-press. I put the log on debug ant it looks like this:
Well, the details seem slightly different (i.e., the address in your first post is “12/3/1”, whereas in your second post it’s “7/3/1”, so maybe this line was from a previous event.) Also, it’s always helpful when posting YAML code, log messages, etc. to format the text properly following the instructions at the top of the page.
Yeah, I had to change the logging to capture the “proper event” so it is a different event. Sorry for the confusion. The data is also important (due to how knx works, this is a lightswitch, so 1 is on, and 0 is off), would this work for it to only trigger when data=1?
It’s important to understand, anything you put under event_data: is not required to actually be in the event. But if a key (like address or data in this case) is in the event data, then it must match the value you provide in the trigger under event_data: (if you provide one.)
That’s probably confusing. Here’s some examples given the way you wrote the trigger. The following events will cause the trigger to fire:
I tried it out know, and it works perfectly, thanks a lot for the help (I used “data” as a number, KNX just sends a single bit, where 1 is on, and 0 is off, for that kind of switch)
It’s a week I’m killing myself over understanding how to trigger an action when the value of a certain group does not change, but it’s sent.
My case is something like this: I have a “switch everything off” key, that sends a value “0” on address 3/6/16. The problem is that 3/6/16 is always off, otherwise I would have everything on! I just needed to trigger an action in HA to turn off also the music when that switch is pressed, but there is never a value that changes!
This solved my problem: THANK YOU! It should absolutely be present in the documentation!!!
I have almost the same issue, working with the knx scene sensor.
Trying to fire automations on receiving knx scenes wont work proper. If I am using a sensor state trigger for my automation, it is only fired once, the knx scene will arrive the first time. If you send the knx scene a second time, nothing will happen, because the state of the knx scene sensor wont change :-/.
I got no Bus:Handling event “knx_event”. I only get:
My fault, fire_event has to be enabled in knx configuration.
But unfortunately, my automation wont fire with given conditions.
Have to dig a little more.
I also had trouble with automation not firing on a scene being sent on a specific GA. This specific scene was the “all off”. In the end I had a good look at the data again, with the following coming out of the event listener in HA: