Library

We have an extensive library of various bOS configuration examples. Select your heating pump, AC, TV or almost any other device and import it to your smart building configuration. We also encourage all system integrators and DIYs to add their own examples to ComfortClick library.

Sonoff BASIC relay icon

Sonoff BASIC relay

Integration of Sonoff Basic relay and D1 dimmer in 'DIY mode' via HTTP driver.

DOWNLOAD

Explore the innovative world of SONOFF, learn and chose about various smart home products, define your smart home,your smart choice!

Device preparation

To monitor Device state POST requests are sending periodically, in example Send Delay is 5 seconds. Make sure the Sonoff device is in your local network, to connect to the device enter the IP address under the Host URL (by default port number is 8081). Example allows us to control Sonoff BASICR3, RFR3, MINI relays and D1 dimmer. Mentioned devices must be in 'DIY mode'.

Configuration

Download the example from our website and import it into your configuration. Step by step instructions on how to import are available in our instructional video.

Search in the LAN for all devices with the service type _ewelink._tcp through the DNS PTR record. Get the Hostname and Port of device service via parsing out the device DNS SRV record. (The default port is 8081). Get device IP address via DNS A record or by other means. Get the info of “device ID”, “Service Type”, “device API interface version” and “device information” via parsing out the device DNS TXT Record. To establish connection, DEVICE_ID must be filled out for all of your devices, the DEVICE_ID should be received in the searching process. Paste the device ID under Value tab under the DEVICE_ID node.

Comments

gocmod.vn@gmail.com

November 26, 2023

How do I control a Sonoff Basic R2? Can you give me an example? Thank you very much.

Please login to post a comment.

This website uses cookies

We use cookies to personalize content, use live chat, provide social media features and to analyze our traffic. We also share information about your use of our site with analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.