Control Aqara M2 IR blaster from HA

Can I control the Aqara M2 IR blaster from Home Assistant (HA)? Additionally, why am I encountering the following error when attempting to add the Xiaomi Gateway (Aqara) integration? Despite entering the IP address of the Aqara M2, the error persists:

“Failed to discover a Xiaomi Aqara Gateway, try using the IP of the device running Home Assistant as interface.”

second the question for Aqara G3 - Homekit Device does not expose IR functionality or I don’t know where to look :slight_smile: