# Homey virtual button/ switch to trigger automation from Home assistant (Mqtt hub)

**URL:** <https://community.homey.app/t/homey-virtual-button-switch-to-trigger-automation-from-home-assistant-mqtt-hub/55797>\
**Category:** Questions & Help\
**Tags:** flow\
**Created:** [December 1, 2021, 2:04am UTC](https://community.homey.app/t/homey-virtual-button-switch-to-trigger-automation-from-home-assistant-mqtt-hub/55797 "2021-12-01T02:04:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![9ixxerlee](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/9ixxerlee/32/34726_2.png) [@9ixxerlee](https://community.homey.app/u/9ixxerlee)\
**Post date:** [December 1, 2021, 2:04am UTC](https://community.homey.app/t/homey-virtual-button-switch-to-trigger-automation-from-home-assistant-mqtt-hub/55797/1 "2021-12-01T02:04:50Z")

</div>

Hi all,  
I am very new to Mqtt and home assistant and being trying to figure this out with no success.

I am trying to trigger an automation from Home assistant (broadlink RF) as I cannot get homey side to learn the RF code.

Technically I want create a virtual Button/switch in homey side to trigger Home assistant \> broadlink to send a RF code to my device.(laundry rack)

Not sure what is wrong

 ![Screenshot_20211201-100152_Home Assistant](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/d/cd0310183833a585ef8caf2130f4bf74ecf9fe9a.jpeg)

The virtual button did worked as I created a flow for push notifications from homey and it works both ways but in Home assistant it does not transfer to the action which is the call service.

Ps the mode was enable during testing.

---

<div class="post-metadata">

**Author:** ![9ixxerlee](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/9ixxerlee/32/34726_2.png) [@9ixxerlee](https://community.homey.app/u/9ixxerlee)\
**Post date:** [December 6, 2021, 3:22am UTC](https://community.homey.app/t/homey-virtual-button-switch-to-trigger-automation-from-home-assistant-mqtt-hub/55797/2 "2021-12-06T03:22:09Z")

</div>

Anyone experienced my issue? T.T
