Hi, I have a sonoff wireless switch. I can see it with my Sonoff Zigbee 3.0 USB Dong, ok until here, but I only see 2 entities in diagnostic: Identify and Power. Ok, then I add to my lovelace, and Identify is a “Press”. Ok, if I want to use this switch, I think I have to do an automation, for instance, open an air conditioned, but, when I run it, when I click the button in the switch, nothing happen, where is the problem? If I click to run automation from the menu, it works! but not pressing switch button…I share my automation:
buttons on switches are not entities, they generate events. So, seeing only only power is normal.
To check if the event ever gets into HA from ZHA, try and go to developer tools and listen for zha_event. There the press should show up. If it works, then I would find a blueprint for the switch. Much easier than generating it manually.
Now, whats the next step? Where can I get a blueprint to make it work? Or maybe it’s easier a blank automation because I just want to trigger another device…I will follow you advice. Thank you in advance
You can find a blueprint, just search for the switch name, blueprint and zha. Then install it and chose the device.
You can also create the automation directly. Easy way is setting, devices and find the switch. open the device and in the right side it shows automations. Press the small + sign and a pop up should show the different switch possibilities. Be aware this is build on HA learning the switch through actions. Hence if you re-pair a new switch and never press a button, there will be no actions to create automations from. Just press the switch and they will be detected