I have installed an Xiaomi Mijia switch with deconz.
I am trying to make it work with the below automation but it doesn’t work. Can anyone help a little please?
I have tried both but didn’t work. I am not at home right now to test it again. I was hoping that something was wrong with my code. I think I did find some spacing errors so I will try it later
You can go to the EVENTS tab on the Developer Tools page and use the “Listen to events” feature to watch for and print out the event of interest. This will let you know 1) if you’re even receiving that type of event (e.g., if you’ve spelled it correctly), and if so, 2) all the event data. Should help you determine if you’ve specified the correct info in your event trigger.
This is what I get. I did this in the morning.
I tried 1000 also but again nothing happens
Is it normal to provide 2 different event type numbers?
any ideas?
So I know nothing about deconz. But that shows two separate events. Did you do two things, or did both of those events come in response to doing one thing?
Anyway, the real issue might be that the event data named event is a number, not a string. You specified a string in your automation. That’s probably why it’s not triggering. Remove the quotes and try again. And, of course, as I believe has already been discussed, the event_type should be deconz_event instead of deconz.event.
The 2 events are probable the push and the release of the button. I don’t use your switch, but with the Ikea switch I get an event when I push it, and when I release it I get another event.