Issue with Sonoff RF Bridge
Hello,
I am trying to use a 2Gang 433 RF switch with Sonoff Bridge. I have an issue. I have created 2 automations (One for button) like this :



Actually, It works. But I can not switch on Button2 Directly. If I want to switch on Button2, I need to press Button1 first before Button2. If I press directly Button2, it won't work. And to switch off (I am using switch.toggle function), I need to repeat the same step: Button1 1st then Button2.
Maybe I am doing something wrong in the trigger section. But I am not able to find it. Can you please me?
Thanks
You shouldn't do automations on state. You should do automations on event. Have you read docs?
@AlexxIT I've read your readme file. But I am not that good in Yaml configuration. Following your suggestion, I've tried to do automations on event like this.

But now I have another issue. As I told you before, I am using switch.toggle service to switch on or off (Please see the 3rd screenshot in my first message) . But even if I press the button only once, it switches on but it goes off immediately ( after 1 sec). What am I doing wrong here ? Please find attached the log
Thanks
Actually it's working fine now. I have a Sonoff TX2. Before buying my bridge, it was paired with a 433 remote. Both remotes were conflicting. Once I deleted the pairing, everything is fine.
Sorry for the trouble and thanks again for your worderful work.