Ok so this is my first time playing with event triggers so my assumption if I’ve done something incorrect but im pulling my hair out trying to find it.
I have a simple zigbee button. I have used developer tools to find they eve t data for when it’s pressed.
I copy the event data into a manual event trigger for an automation.
The event does fire but for some reason. The automation doesnt trigger. Anyone piint where I’ve messed up?
Thanks for coming here and asking a question.
Would you be so kind as to adjusting the format of your code so that we can read it properly & check the YAML spacing, etc. Editing your original is the preferred way. It is very hard for us to tell what is what when the text formatter jumbles everything like that.
You can use the </> button like this… How to format your code in forum posts
OR… Here is an example of how to fix formatting from the site FAQ Page. How to help us help you - or How to ask a good question.
You’ve simply copy-pasted the whole event object under event_data, which is not how it should be done.
By doing so you’ve made the trigger require data it will never contain and data that is too specific.
The data component that event_data checks will never contain an entry of event_type: zha_event.
The trigger can’t require a time_fired value that is in the past and be expected to trigger in the future.
The only two data points you should need are the device id and command: