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.
Thanks
Alan

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.

2 Likes

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

Thanks

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: allegro.pl/oferta/wlacznik-swiatla-wifi-dotykowy-szklany-czarny-2p2p-8718153782

Thanks in advance for your feedback.

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.

2 Likes

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

2 Likes

Very scary idea.

Should not be using Facebook for anything. :wink:

5 Likes

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.