How to connect to OpenHAB with Dusun gateway?

This document describes the way to integrate the Dusun gateway to OpenHAB platform in steps.
Table of Contents

This document describes the way to integrate the Dusun gateway to OpenHAB platform in steps.
1. Download OpenHAB from the link https://www.openhab.org/download/
2. Open the OpenHAB web client, enter the paper UI page

DM 20220701150420 008

3. Pair one zigbee device with our gateway, as for an example, we used a socket to control switch on/off.

DM 20220701150420 009

4. Enter the OpenHAB webpage and enter PAPER UI.

DM 20220701150420 010
5. Choose Add-ons, BINDINGS and type in mqtt, and install.
DM 20220701150420 011
6. Choose the MISC page and install MQTT Broker Moquet.
DM 20220701150420 012

7. Choose the Then add the mqtt broker to the gateway, if you had the external broker, choose the MQTT Broker, in our sample we just use the embedded broker for installation. By default, it used the localhost as the host and port 1883.

DM 20220701150420 013
8. Then create a Generic MQTT Thing by adding MQTT Binding – ADD MANUALLY – Generic MQTT Thing. Choose the bridge as the MQTT Broker we create just now and name it as you want, for example(SWITCHONE).
DM 20220701150420 014
DM 20220701150420 015
9. Then add channel to the SWITCHONE, fill in the name and label the one you want. The topic subscribe from ‘t ’ and the topic publish to ‘t/30:ae:7b:2b:4e:b1’. As for the data for ON/OFF value, you can refer to Dusun gateway communication protocol for mqtt.
DM 20220701150420 016
10. Then choose a item type for the thing created, create a new item and link it with the thing.
DM 20220701150420 017
DM 20220701150420 018

11. Finally it’s done, you can control the switch through the OpenHAB.

DM 20220701150420 019

12. If you want to create the page in BASIC UI, you can create the switch.sitemap file in path ./openhab/conf/sitemaps. As for the grammar, you can refer to the link https://www.openhab.org/docs/ui/sitemaps.html

DM 20220701150420 020

A sample code is attached above the name SWITCHONE_SwitchOnff is the one of the channel you created.

13. Then you can control it in the BASIC UI.
DM 20220701150420 021
Related IoT Product Specifications

DSGW-230 IoT Ceiling Edge Computing Gateway

DSGW-230 Edge Computing IoT gateway is multiprotocol and with POE or USB type-c low voltage power supply. Wireless options include Cellular, Bluetooth, Wi-Fi, Ethernet, ZigBee,

Smart Watch Product Specification

This smart watch specifications offers features, appearance design, both hardware and software specs of CV06iR smart watch product. It uses Bluetooth low energy technology and

Looking For An IoT Device Supplier For Your Projects?

CONTACT US

    This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

    IoT Gateways for Recommendation

    CONTACT US

      This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

      Welcome to DusunIoT

      Hi there 👋 Is there anything we can help you with today? Please fill in the form below for the team to follow up if you become disconnected.

        DusunIoT Distributor Program

          This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

            This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.