I have a Aqara Zigbee Button setup in home assistant. I would like to use it to turn off a lamp that is connected to a Zigbee plug. The only problem i am running into is when I press the button the lamp will quickly turn off then back on again. This happens like with in a second. Is there away to solve this.
Since it's a single button with the only action "button pressed" you cannot inject on or off commands. So what you basically need ist the actual light state (which is on or off). Since you are on home assistant I can't help you here.
However, once the light state is known you can work using a switch node which depending on the state sends the command on or off.