Skip to main content

Linksys smart home integration, free and open source

Linksys integration for Gladys Assistant

Linksys Smart Wi-Fi and Velop routers: presence of your devices, Internet, connected devices.

Follow your Linksys router from Gladys Assistant: who is at home, the state of your Internet connection and the devices connected right now. Works with the Linksys Smart Wi-Fi routers (EA, WRT and MR series) and the Velop mesh systems. Everything stays on your local network: the integration talks to the router through JNAP, the local interface its web page and app use, without the Linksys cloud.

Developed without the hardware: feedback welcome, on the issues of the project. This integration is not affiliated with Linksys.

Overview​

  • Presence: each device you choose (a phone, a laptop, a wired NAS) becomes a presence sensor, present while the router sees it connected, on its Wi-Fi, on a cable or on a Velop node; with the time it was last seen, its IP address and its Wi-Fi band.
  • Router: Internet connected, WAN IP address, firmware version, connected devices.
  • Scenes: a followed device arrived or left, Internet down and restored.
  • Command, disabled by default: rebooting the router.
  • Widgets: the router, and the devices at home.

Requirements​

  • A Linksys Smart Wi-Fi router (EA6350, EA7500, EA8300, EA9500, WRT3200ACM, MR9600…) or a Velop system (WHW01, WHW03, MX4200…), with a local admin password set.
  • Gladys Assistant 5.1 or later, on the same local network as the router.
  • The local address of the router, of the primary node on a Velop (e.g. 192.168.1.1).
  • The admin password of the router: the one its local web interface asks for, not the password of your Linksys cloud account. On a Velop set up with the app only, set it in the app (Wi-Fi settings β†’ Advanced β†’ Router password, depending on the version).

Configuration​

In Gladys: Integrations β†’ Linksys β†’ Configuration.

FieldWhat to enter
Router addressThe local IP address of the router, with :port if needed. Write https:// in front for HTTPS.
Admin passwordThe admin password of the router. The user name is always admin.
Refresh interval10 s, 15 s, 30 s (default) or 1 minute.
Departure delay (minutes)A device no longer seen counts as away after this delay (5 minutes by default, 0 to 60).
Allow commandsOff by default. Lets the scenes and the widget reboot the router.
Language of the namesThe language of the device and feature names, set when a device is added (French by default).

Then click Test the connection: the report gives the model and the firmware, the Internet state with the WAN address, the devices connected and known, and whether the firmware gives the live Wi-Fi connections.

Devices​

Open the Discovery tab of the integration: the router comes first, then every device the router knows (the connected ones first). Add the ones you want to follow. A device known with a cable and a Wi-Fi interface (a laptop) appears twice, with "(cable)" and "(Wi-Fi)": each one is present on its own.

The router​

FeatureValues
Internet connected1 when the Internet port of the router is connected, 0 when it is not.
WAN IP addressThe address of the Internet port (a private one when the router is behind an ISP box).
Firmware versione.g. 2.0.8.194281.
Connected devicesDevices connected right now, Velop nodes left out.

Network devices (presence)​

FeatureValues
Presence1 when present, 0 when away.
Last seenDate and time it was last seen; while present, it moves every 15 minutes.
IP addressIts last IP address.
Wi-Fi band2.4 GHz, 5 GHz or 6 GHz, or Cable for a wired device.

A device is present while the router lists a connection for it. It becomes away once the departure delay has passed since it was last seen: a phone asleep leaves the Wi-Fi a few minutes without leaving home. When the router cannot be read, nobody is sent away.

Nothing is a switch: the reboot goes through a scene action and the widget, so that a voice assistant never cuts the network.

Widgets​

  • Linksys router: the connected devices, Internet with the WAN address, the model and the firmware. With Allow commands, a Reboot button with a confirmation; a setting of the widget hides it.
  • Devices at home: the followed devices with the name you gave them in Gladys, present first, with the time since they left. Its setting shows all of them or the present ones only.

Scene triggers​

TriggerWhenFilter and variables
Device arrivedA followed device is seen again after being away.Filter: the device (empty: any). Variables: device name, MAC address, IP address, Wi-Fi band or cable.
Device leftA followed device has not been seen for the departure delay.Filter: the device (empty: any). Variables: device name, MAC address, last seen.
Internet downThe Internet port of the router is no longer connected.WAN status (Disconnected, Connecting).
Internet restoredThe Internet port is connected again.Outage length (minutes), WAN IP address.

Unlike the presence state of a device, the two presence triggers work for "any followed device" and give its name to the actions (a message "{{triggerEvent.data.device_name}} is home"). They never fire at the start of the integration nor when a device is added.

Scene actions​

  • Reboot the Linksys router: needs Allow commands. The network is cut for two to three minutes; on a Velop, the whole mesh restarts.

Configuration actions​

  • Test the connection: reads everything again and gives the report described in the Configuration section; a failure shows in red with its reason.

Scene examples​

  • Welcome: on "Device arrived" with the filter on a phone, turn on the hall light after sunset.
  • Nobody home: on "Device left", when every followed phone is away, turn off the lights and arm the alarm.
  • Outage: on "Internet down", send a local notification; on "Internet restored", send "Internet back after {{triggerEvent.data.down_minutes}} min".
  • Weekly restart: every Monday at 4:00, reboot the router.

Network use​

  • Three small requests to the router per refresh interval (device list, WAN status, live connections), on its local interface, plus the model and firmware every six hours. No quota, no cloud, no data sent outside your network.
  • A firmware without the live connections is asked for them once, then the Wi-Fi band comes from the device list.
  • Nothing is stored under /data.

Troubleshooting​

  • "The router does not answer at this address": check the local IP address, and that Gladys is on the same network.
  • "No Linksys JNAP interface at this address": the address points to another device (an ISP box, a Velop child node), or the router is in bridge mode.
  • "Admin password refused by the router": check the local admin password; the integration tries again every five minutes, as the router delays the checks after several failures.
  • A phone shows away while at home: raise the departure delay; some phones put their Wi-Fi to sleep for a long time.
  • More details in the logs of the integration with LOG_LEVEL=debug.

Limits​

  • Developed without the hardware: tested against answers rebuilt from the formats published by free projects, not on a real router yet.
  • Plain HTTP by default on the local network: the admin password travels in every request, as with the web page of the router. Use https:// if your router offers it (certificate not checked).
  • The router lists a device as connected a little after it left on some firmware: the departure delay absorbs it.
  • No per-device traffic, no guest Wi-Fi or parental control command: the only command is the reboot.

Feedback​

Questions, a model that answers differently, an idea: github.com/guim31/gladys-linksys/issues.

Configuration settings​

These are the settings Linksys asks for in its configuration screen in Gladys.

SettingTypeRequiredDescription
Your Linksys routersectionNoAny Linksys Smart Wi-Fi router (EA, WRT, MR series) or Velop mesh system, on its local address, with its admin password (the one of the local web interface, not of the Linksys cloud account).
Router addressstringYesLocal IP address of the router (of the primary node on a Velop). Plain HTTP by default; write https:// in front to use HTTPS.
Admin passwordsecretNoThe router password, asked by its local web interface. The user name is always admin.
Refresh intervalselectNoHow often the router is read (three small local requests).
PresencesectionNoAdd the devices to follow from the Discovery tab: each one becomes a presence sensor, present while the router sees it connected (Wi-Fi, cable or Velop node).
Departure delay (minutes)numberNoA device no longer seen counts as away only after this delay: a phone asleep leaves the Wi-Fi for a few minutes.
CommandssectionNoRead only by default. The only command is the reboot of the router, from a scene or a widget. Nothing else is ever changed.
Allow commandsbooleanNoLets scenes and widgets reboot the router.
Language of the namesselectNoLanguage of the device and feature names, set when a device is added to Gladys, and of the scene variables.

How to install Linksys in Gladys​

  1. In Gladys, open Integrations: Linksys appears in the catalog, next to the native integrations, with a community badge.
  2. Click Install. Gladys pulls the Docker image (ghcr.io/guim31/gladys-linksys:1.0.0), starts it in a sandbox isolated from the core, and generates the integration's interface (devices, discovery and configuration).
  3. Open the Configuration screen of the integration, fill in the settings, and save.
  4. You can also install it directly from its repository URL: https://github.com/guim31/gladys-linksys.

Linksys requires Gladys >=5.1.0. The catalog inside Gladys refreshes every hour, so a new version becomes available at most one hour after its release.

Not running Gladys yet? It is free and open source: follow the installation guide to get started.

About external integrations​

Linksys is an external integration: a community integration packaged as a Docker container and published on GitHub, that Gladys installs in one click and runs in a sandbox isolated from its core. It is published and maintained by guim31, not by the Gladys core team.

Subscribe to the Gladys Assistant newsletter

A few emails per month about new releases and project news. Sent by Pierre-Gilles Leymarie, founder of the project. Unsubscribe anytime πŸ™‚