Hey guys, hopefully a facepalm here, but I've added MQTT Button exposed to HA from YAML, it sends a timestamp when the state changes, great!
Except, it triggers the assigned HA Automation when it becomes unavailable, online or offline using the availability topic.
https://www.home-assistant.io/integrations/button/#device-class:~:text=effectively captures when the button is pressed .
My intended outcome would be the button not to run on MQTT Discovery & only run when it is pressed by user or something else other than just being discovered, cheers.