I purchased a Niko Switch (end device - on battery) which I added to my Zigbee network.This is visible and configured. I want to start to use it in automations but I can’t see the states. The only changes I see are ‘Events’ which are fired.
How can I make an automation based on those events ?
I see you’re using ZHA. I have the same situation with all zigbee buttons (Aqara, but also from Niko); they don’t show up as a switch, but you have to subscribe to the events they produce.
This is mainly because those devices are usually slightly more advanced compared to a single boolean value; they often understand short- and long press, but also double press or more.
I’ve quickly pasted my blueprint in a Gist; niko_button_press.yaml · GitHub. It is designed for a 4-button device, but might also be usable with other Niko buttons. In the developer tools, you can also subscribe to zha_event so see the device IEEE and endpoint ID.
Edit; just noticed it the original question is quite old, but maybe it can help for future reference.