Just fall into home assistant in these days.
I modified the code, because the capability to simulate actions of the wireless button is very important for me.
Thus, I can control the state of the gateway’s alarm mode (arming or not) and other components of the mijia-eco in hass automations.
I’d tried to make a customize component and failed, hence, I have to modify the code directly.
I wish it could be merged into the official code.