Documentation / LemmeSee Hub

Connecting phones

LemmeKnow connects to your hub in two ways at once. It signs in to the MQTT broker to receive messages as they happen (logs, pings, feed updates, states, and approval requests), and it calls the hub's web address for everything else: the lists of feeds, streams, and plugins you can see, feed items, plugin pages, and the web UI. Both use the same username and access key.

Connecting to a server needs LemmeKnow Premium. See Free and Premium.

Before you start

  • You have a user on the hub and its access key. See Users and access keys, or accept an invite.
  • The broker has a listener the phone can reach that checks hub sign-ins, with TLS. See MQTT and the broker and, from outside your network, Remote access.
  • The hub PC's firewall lets phones in on the broker's phone listener and the hub's HTTPS port. See Firewall below.
  • LemmeKnow Server runs on the hub's PC, for example as a daemon task, with HUB_URL set to the hub's https:// address. Its heartbeat turns the server's status dot green, and its config message tells the phone the hub's web address. Without a hub URL, the app tries https:// with the broker's host name. See Server configuration.

Firewall

Mosquitto runs as a Windows service, so Windows never asks you whether to let it through the firewall, and phones can't reach it until you add a rule. Do the same for the hub's HTTPS port. From an administrator PowerShell, with your own ports:

New-NetFirewallRule -DisplayName "LemmeKnow phone listener" -Direction Inbound -Protocol TCP -LocalPort 1884 -Action Allow
New-NetFirewallRule -DisplayName "LemmeSee hub HTTPS" -Direction Inbound -Protocol TCP -LocalPort 8443 -Action Allow

Add the server in the app

Each person adds the hub on their phone like any other server: the broker listener's address as host:port, for example hub.example.com:8883, with their hub username and access key. The form and its settings are described in Connecting to a server, and what changes once the phone sees a hub in Connecting to a LemmeSee hub.

What the phone gets

When it connects, the app asks the hub who you are and fetches the lists of everything you're allowed to see. Whenever an admin changes a feed, a stream, a plugin, or your permissions, the hub tells connected phones to fetch the affected list again, so changes show up without reconnecting.

From the hubIn the app
Server feedsFeeds you can subscribe to. See Feeds.
StatesLive values on the server's Dashboard item, and values for rule conditions.
Plugin pagesPages in the app, some in the Monitor dropdown. See Plugins on your phone.
StreamsVideo streams. See Video streams.
ApprovalsRequests you answer from the Dashboard.
Webhooks and named filtersTargets for your custom actions and filters for RSS feeds.
Ping labelsNames for your ping codes. The app acts only on pings that have one.
Logs and pingsThe Monitor tab, and triggers for rules.

Everything is filtered by your user's permissions, both on the hub and at the broker. See Permissions and grants.

Several phones and several people

Give each person their own user, so you can change permissions or rotate a key for one person without touching the others. One person can use the same user on several phones; messages sent to that user reach all of them.

If a phone won't connect or shows less than you expect, see Troubleshooting.