a few days ago i posted a topic that i was not able to get the niko zigbee switch in HA.
That is working now.
However, i’m not able to get any actions assigned.
If i try to assign it, it show a couple of triggers, but the buttons are not one of those triggers:
But when i click the button, i can see in the logs that it reacts
So there should be 4 buttons that i could chose from.
Buttons are generally events and not state changes, so you might need an event trigger.
You can see the button events by going to the Developer Tools and select the Event tab.
Then put * in the Listening for Events field.
Now click the Start listening button followed by the button on your device and finally the Stop listening button.
You will now have a list of all the events HA received in that timespan and somewhere in there will your button events be too.
Remember there can be multiple events for a button press, like button pressed, button hold, button hold, button hold, button released.
It is the device that decides what is sent and it is up to you to choose what events you want to react to.
ChatGPT is usually failing awfully with HA stuff, so I do not expect it to work.
The indentation looks all wrong as a startm but that might just be your copy-paste that failed there.
Also avoid using device_id. Use entity_id instead.