Setting up a button to toggle socket

Hi there - rebuilding my HA from scratch…trying to get a philips HUE button to toggle a socket…heres my automation which works if i hit the run from the top right but actually pushing the button on the hue doesnt work… can anyone see anything wrong with my config…?

Fixed it…repaired button and started working…