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_URLset to the hub'shttps://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 trieshttps://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 hub | In the app |
|---|---|
| Server feeds | Feeds you can subscribe to. See Feeds. |
| States | Live values on the server's Dashboard item, and values for rule conditions. |
| Plugin pages | Pages in the app, some in the Monitor dropdown. See Plugins on your phone. |
| Streams | Video streams. See Video streams. |
| Approvals | Requests you answer from the Dashboard. |
| Webhooks and named filters | Targets for your custom actions and filters for RSS feeds. |
| Ping labels | Names for your ping codes. The app acts only on pings that have one. |
| Logs and pings | The 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.