How to connect WiFi devices

Hi all
I don't have the HE yet so am lacking knowledge. I understand how the HE connects to zigbee/zwave devices but how does it connect via WiFi? For example, the sonoff wifi wall switches.

1 Like

Via specific drivers (if they exist) and most usually fixed ip addresses for your devices.

Hubitat has a LAN connection, which is how you connect to the web interface for setup and administration. Wi-Fi devices are (in the way most consumer networks are set up) accessible from this same LAN, so Hubitat--like any device on your network--is able to connect to them over standard TCP or UDP protocols (as long as they are accessible from your network).

The real issue is whether there is a documented or reverse engineered API for such devices. The Hue Bridge is technically wired (not wireless) but is a great example of a IP-connected device with a great, documented, local interface that Hubitat supports natively. Sonoff doesn't have an official Hubitat integration, but there is a community driver that works for many. The important thing is to not assume that Hubitat can connect to any random Wi-Fi IoT device--most are cloud-only, have only undocumented or at best reverse-engineered interfaces, and work poorly if at all outside their manufacturer's "ecosystem."

And as noted above, most of these work a lot better (as will your hub) with a "static" IP address. Some may let you set one directly, but I normally prefer to do it via DCHP reservation on my router by MAC.


Thanks for the detailed reply.
I understand the network connectivity but was wondering how the devices actually communicated (e.g through relevant device app or direct) which you've answered now, thanks.
I'm assuming, for any devices without drivers, hubitat can communicate via IFTTT if supported (although losing local control). Is that correct?

Yes, there is an IFTTT integration with Hubitat so pending a direct API integration for your devices, you can use that. Of course the normal perils of Clihd, slow speed, missed transactions may arise :wink:

I use it for several Smart Life and eWeLink based devices and it works OK with around a 2-5 second delay being typical.

1 Like


Sorry for refreshing the topic.
Is there a chance that anyway without the drivers, hubitat will see the WIFI device?
I man for example this one:

Thanks in advance for your feedback.

1 Like

Without a driver, hubitat can’t interact with any kind of device.

As @bertabcd1234 noted above, WiFi devices need very specific drivers because device manufacturers don’t standardize how their WiFi IoT devices function.

In contrast, Z-wave and zigbee devices from various manufacturers can work with generic drivers provided by hubitat.

There is zero chance of that happening for Wi-Fi devices. Pretty much all of them need to be "discovered" by a Hubitat app written exactly for that purpose and have a dedicated driver that knows how to communicate with the device. There is no standard for Wi-Fi devices beyond the protocol itself.

Since OP mentioned Sonoff switches, there are tons of videos on YouTube showing how to flash Tasmota onto them (and other brands of wifi devices) as well as tons of posts in this community. I did it successfully on 2 Sonoff Basics and a Pinlo Power strip. Those deceives are now locally controlled directly thru HE. If I can do it, anyone can.

Thanks for this replay. However in each post there is also information about the drivers.
Is it really not possible to simply port somehow the wifi devices as my light switch so Hubitat can see it?

It is not possible. Assuming your WiFi device has an app. Can you control your WiFi device with the Facebook app? Even though they are both apps and both connect over WiFi, the reason you can't is the Facebook app has no idea of how to talk to your WiFi device. A stupid example perhaps but what and how devices communicate is important. Without some way to translate between how the WiFi switch communicates back and forth with the HE hub, you are out of luck. Since the site lists Tuya and Smartlife I would read up on some of the posts here in the Hubitat communities.


Should I not be using Facebook to control my home automation? :stuck_out_tongue_winking_eye:


Very scary idea.

Should not be using Facebook for anything. :wink:


As that device use the Tuya cloud you should be able to flash it with another firmware like Tastmota and then use the community drivers.
There has even been a fork of the firmware made to work with Hubitat.

What if I change my mind? Can I flash them back to original factory settings?
If so, how?

If you use Tasmotizer, you can according to documention:

See 1st bullet point under Features. I don't know how though.

I prefer and use this to flash OTA:

Requires Linux and a WiFI adapter, but you can make a bootable USB stick that allows you to run Linux on your Windows machine without altering your Windows installation. You boot into the OS from the USB stick. CD/DVD is another option for booting an alternate OS, but it's slower than a USB stick.

With some of the OTA methods a Raspberry Pi is required, this one does not require a Rasperry Pi, just a booted Linux OS.

In my case I used an old laptop (2011-ish) running Antix Linux, a lightweight Debian distro, that has only 2GB of RAM (and some of the limited RAM is used by the display adapter, making the RAM amount available to the OS only 1.8GB! Worked great for flashing also for light web browsing.

I also installed the Opera web browser on this machine and I'm able to open 5-6 tabs without performance degradation...but anyway now I'm getting off topic :wink: