# Robonomics 2 gang switch with ESPHome: openHAB binding
This article explains how to connect 2 gang Robonomics smart switch with ESPHome firmware to openHAB. This article assumes that you already uploaded ESPHome firmware on the switch. If no, refer to [previous article](https://hackmd.io/@nakata5321/SkO8ejq_T) first.
The article was written in openHAB 4.1.1.
## openHAB
### Binding
To connect ESPHome devices to openHAB first you need to install "ESPHome binding for the Native API". For this go to "Add-on Store -> Search" and type "ESPHome". Install it.

### Things
Power on the switch and then go to "Settings -> Things". At the bottom of the page will be the "INBOX" button. Press on it. You will find a new device.

If there is no "INBOX" button, press the button "new thing", choose ESPHome binding, and start scanning the network. This action will discover all available things.

Choose the discovered switch and add it. Return to the Things page. Choose the switch. At the top of the page, choose the "Channels" tab.

Here press "Add Equipment to Model" and at the bottom of the new page choose "Select All". Then press "Add to Model".

### Add to Page
Now it's time to add buttons to a Page. Go to "Settings -> Pages". Create a new one or choose the existing one. In the example, we will create a new Layout page. Give the "Label" for the page.

Then press "add Masonry" and add a new item. Choose "Add from Model":

Then "Pick" all items which you need:

and save Page. That's all. Now you can control the switch from openHAB.