HubConnect Communication Protocols

There are several ways that hubs can be configured to communicate with each other in HubConnect 2.0.    Websockets are the most efficient method, however they have been deemed not officially supported by Hubitat staff and could go away at any time.

 

http (oAuth):

This is the slowest, but most reliable method for hubs to communicate. It is the only method that can connect hubs in remote locations. It's also the default, and only option for SmartThings. It's also the only officially supported option as Hubitat staff has said websockets are not an offiially supported method.

Websocket:

This method is technically not supported by Hubitat nor is it recommended, but it works.. and it works very well. This method is superior to http in that it is a persistent connection in which small messages are passed between hubs. This reduces load on hubs and also doesn't come with the added overhead of http transactions so messages passed over the websocket tend to arrive faster on average. Device commands are still passed via http since the Hubitat websocket is readonly (unidirectional).

HubConnect Server:

This is both the fastest and most hub-friendly method of linking hubs together. It deduplicates, filters, then routes messages so that only the important events are deliverred to the hubs that expect them. It also extends the Hubitat websocket so that device commands leverage the persistent connection for faster response times than http can deliver.

  • 2.0beta
  • 4026 Benutzer fanden dies hilfreich
War diese Antwort hilfreich?

Verwandte Artikel

HubConnect License Agreement

HubConnect for Hubitat and SmartThings is a software package created and licensed by Retail Media...

HubConnect 2.0 Changelog

Key Features of HubConnect 2.0 HubConnect Server - Node JS server which acts as a router,...

HubConnect Server Messaging Explained

The HubConnect server is the center of a high-performance "hub-connected" smart home ecosystem....

HubConnect 1.5x, 1.6x to 2.0 Upgrade Instructions

HubConnect 2.0 Upgrade Instructions     Multi-Platform, Real-Time Device Intercommunication...

HubConnect v2 Installation Instructions

HubConnect 2.0 Installation Instructions Multi-Platform, Real-Time Device Intercommunication...