Product Guides

How to Get Device Information and Control them in iHost?

How to Get Device Information and Control them in iHost?

Devices that connect to iHost directly through Zigbee and devices that connect to iHost through Add-on can be displayed and controlled on the iHost console. It means that you can check these devices state and subscribe to state changes via iHost’s OPEN API, as well as support for manipulating these devices through APIs.

In order to have a further understanding of the status subscription and device management APIs, we provide an open-source project named “Homebridge eWeLink CUBE plugin” for your reference.

This Plugin takes devices in the iHost and synchronizes them to the Homebridge system for real-time display and control.

Its workflow begins with the discovery of hosts by searching the LAN network through mDNS, after the user selects the host to connect to, “Homebridge eWeLink CUBE plugin” will first call iHost’s permission API to apply for an API access token. After manually confirming the authorization on iHost as prompted, the Add-on can successfully obtain the token for subsequent communication with iHost.

Plugin then calls the device query API to get a list of all the devices, and will display the obtained list of devices in iHost, after the user selects the device that wants to synchronize to Homebridge, Plugin calls iHost’s device status subscription API to monitor the status changes in real-time. Similarly, if the user controls these devices on Homebridge, the plugin will call the device control APIs to send commands to iHost for controlling these devices.
With the same process, any developer can develop an Add-on to get the device list of iHost, subscribe to the device status of iHost, and control the devices on iHost. All you need is this Add-on that also supports data communication with third-party systems, iHost and its managed devices can be seamlessly integrated into any third-party system for monitoring and management, like Home Assistance, openHAB, iobroker etc.

Reading next

How to Integrate SONOFF ZBM5 into Home Assistant Using ZHA
How to Do Low-code Development in iHost?

Leave a comment

All comments are moderated before being published.

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