I want to create a custom trigger for RF Buttons such that I can use them in automations like this:
trigger:
platform: rf_button
name: doorbell
This triggers the automation every time the button is pressed. (Receiving the RF signal and telling the trigger platform to ‘trigger’ is handled somewhere else).
The button itself does not have a state, I want it to trigger when the button is pressed (like an event).
- Is this a good way to do it, is there a better way?
- How would I execute this trigger from another custom component?