I’m struggling with my first attempt at doing some automation that is to be triggered by an RFXTRX switch. Using an RF remote as an example, when I press a button, I get the following in the log:
It seems it doesn’t trigger no matter what I do. I tried different things with the “state” line, such as replacing ‘off’ with ‘unknown’ and leaving out the line entirely to no avail. I also tried to leave out the condition line.
I’m trying to figure out how to add event data to this automation. For example; I only want to execute this automation when I press ‘on’. I want to trigger an other automation when pressed ‘off’.
@Sennevds does this mean that Homeassistant does some kind of conditional testing in the background?
If you have a switch that either can send state: “on” or state: off? So if I pass as you describe, “state”: “on” with event_data, HA check so that INFO:homeassistant.core:Bus:Handling <Event button_pressed[L]: state=on, entity_id=switch.multipulse> state is really “on” in the event?