Follow these steps in order and your remote will be talking to Homey in about 15 minutes.
Homey and your SofaBaton send messages to each other through a little middleman called an MQTT broker. Think of it as a post office they both drop letters at. The easiest way is to run one right on your Homey — use this exact app:
Install this broker MQTT Broker — by Menno van Grinsven ↗Now point your remote’s hub at that same broker, so it starts dropping its messages there.
The app is in the Homey App Store. Open this link on your phone or computer, sign in to your Homey, and install:
Homey App Store homey.app/a/com.repairguydk.sofabatonx2/ ↗On the SofaBaton device card in Homey, tap “Refresh devicelist”. After a few seconds your real devices and keys (TV, fan, and so on) show up in the app’s dropdowns.
You’re ready. Here are the two things you can do — both from the Flow editor (a full card-by-card overview follows below):
When a SofaBaton button is pressed → Then do anything in Homey. Press a new MQTT button once so it appears in the list.
A Then action: On [device]: press [key] — for example, turn your fan on straight from Homey.
A Homey Flow is built from three columns — When, And and Then. Here is everything this app adds, and where each card is hiding.
A specific button was pressedAny button was pressed
These live under the SofaBaton X2 app itself — not under the hub device. Tap + in the When column and type “pressed”, or scroll down the list to the app’s own icon. Both cards hand you the tags Device, Key, Device ID and Key ID to use later in the Flow.
The hub connection is / is not pausedThe last pressed button was / was not …
Pick the SofaBaton hub device in the And column. Handy for “only do this if the connection isn’t paused”, or for reacting differently depending on which button was pressed last.
On [device], press [key]
Pick the SofaBaton hub device in the Then column, then choose which of your devices and which key to fire — infrared, RF or Bluetooth, whatever the hub can reach.