Skip to main content

Sharp AQUOS smart home integration, free and open source

Sharp AQUOS integration for Gladys Assistant

Sharp AQUOS TVs, local: power, volume, mute, input and channel.

Control your Sharp AQUOS TVs from Gladys, on your local network, without any cloud: power, volume (with a cap), mute, input and channel.

Unofficial integration, not affiliated with Sharp. It has never been tested with a real device: it follows the "IP control" section of the Sharp AQUOS operation manuals. Feedback from owners is welcome.

Before you start​

  1. On the TV, open the network settings, then the IP control setup ("Control setup", "IP control" or "AQUOS remote control" depending on the model) and turn IP control on. The port is 10002 unless you changed it.
  2. If you set a login ID and a password there, type the same ones in the configuration of the integration (one ID and password for all your TVs).
  3. Give the TV a fixed IP address in your router: the address is its identity in Gladys.

Configuration​

  • IP addresses of the TVs: separated by commas, for example 192.168.1.50, 192.168.1.51, or 192.168.1.50:10008 for another port.
  • Login ID and Password: only if set on the TV. The password is kept by Gladys in its database, never shown again, and sent only to the TVs at the addresses above, when they ask for it. A password without a login ID is ignored (said in the status).
  • Volume cap (1 to 100, 20 by default): the highest volume Gladys may set, on the scale of the TV (0 to 60 on many models).

Each TV that answers appears in the Discovery tab: add it to Gladys.

Buttons​

  • Check the TVs: the state of each TV, and the volume cap. A TV that refused the login is tried again once.
  • Enable power on from Gladys: writes "power on by network command" (RSPW2) on each connected TV, once per press. Press it while the TV is on: in standby, a TV without this setting is not reachable on the network. The integration never writes it by itself. It goes to every TV the integration is connected to (typed addresses included), not only those added in Gladys. This setting keeps the network of the TV powered in standby: the standby consumption is higher (it may go against an eco / low-power standby mode). The integration never turns it back off (no RSPW0): to undo it, set the power on by network command (Quick start / Control setup) back to off in the menu of the TV.

What you get​

FeatureTypeNotes
Powerread only1 on, 0 standby or not reachable
Power on, Power offbuttonsPower off is protective (below)
Volumeslider 0 to 100capped by the configuration
Mutedread only
Mute, UnmutebuttonsMute is protective; Unmute lowers a volume above the cap first
InputlistTV (tuner) or Input 1 to 9
Channelnumber 1 to 9999direct channel (DCCH)
Channel up, Channel downbuttons

There is no on/off switch on purpose: an "everything on" from a voice assistant or a scene never turns a TV on.

The TV is read every 30 seconds (it sends nothing by itself). A command is done when a read made after it shows the value asked; otherwise Gladys shows "sent, without confirmation" and the TV is read again 5 and 20 seconds later. The tuner input, the channel and Channel up / down cannot be read back: they are done when the TV answers OK. A command the TV answers with ERR (in standby, a value above its maximum, an input or a channel it does not have) is reported as refused.

The volume cap​

Every volume sent goes through the cap read just before sending: a higher volume is set to the cap. Unmuting reads the volume first and lowers it to the cap when above (and does not unmute if the volume cannot be read). After a Power on from Gladys, the volume is lowered to the cap as soon as the TV gives it, for 2 minutes at most. The volume set with the remote is not changed otherwise.

Power off and Mute​

Power off and Mute go before any other command of the TV (the commands waiting are cancelled), whatever the cap, the configuration or a read in progress. If the TV is not connected, the command is kept for 2 minutes (also across a restart of the integration) and sent as soon as the connection comes back. It is sent again, 3 times at most, when the TV did not answer it, or when a read made just after it (within 20 seconds, on the same connection) shows it was not applied.

They do not leave, or stop being sent, only in these cases:

  • the TV is still not reachable 2 minutes after the press (and after a connection attempt made past that time);
  • the TV refused the login ID or password: the same credentials are not sent again by themselves;
  • the TV asks for a login ID and none is set in the configuration (the connection cannot be used);
  • the TV answered ERR (Mute or Power off on a TV then read in standby counts as done);
  • 3 sends were made;
  • the TV answered OK, and it was seen on (or unmuted) again only later (after 20 seconds, or after a reconnection): someone turned it back on, and the integration does not fight it;
  • a Power on (or an Unmute) sent from Gladys after it.

Login​

When the TV asks for its login, the ID and password are sent once per connection, after their prompts. If the TV asks for the login again after the password, or closes the connection right after it twice in a row, the credentials are treated as refused: no new attempt by itself until you change them or press Check the TVs. After a restart, only a short salted fingerprint (8 bits) of the refused credentials is kept in /data, never the password. A new password changed while the integration runs is always tried. Changed while it was stopped, a new password has 1 chance in 256 to share the fingerprint of the refused one: if the TV still shows as refused after a restart, press Check the TVs (one attempt; a success forgets the refusal).

A "Login:" prompt coming late (a slow TV) is never taken as a refusal: the connection is opened again, waiting longer for the prompt.

Limits and troubleshooting​

  • "Not connected": TV unplugged, IP control off, or TV in standby without "power on by network command" (most models turn the network off then).
  • "No Sharp AQUOS TV answers yet at": something answered at that address, but not as an AQUOS TV, or nothing answered at all.
  • The TV closes a connection left idle 3 minutes; the 30 s reads keep it open.
  • The volume scale and the inputs differ between models: a value the TV does not take is refused with ERR, nothing is changed.
  • The channel uses the direct channel command DCCH: some models (digital tuners outside North America) may refuse it; Channel up / down work there.

Configuration settings​

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

SettingTypeRequiredDescription
Your Sharp AQUOS TVs, on your local networksectionNoPower, volume, mute, input and channel of each Sharp AQUOS TV, through its IP control (TCP port 10002), without any cloud. On the TV, turn IP control on in the network settings (Control setup / IP control) and give the TV a fixed IP address in your router, then type it below: the TV appears in the Discovery tab. To power the TV on from Gladys, press "Enable power on from Gladys" below once while the TV is on: this keeps the network of the TV powered in standby (higher standby consumption), and the integration never turns it back off (undo it in the menu of the TV). The volume set from Gladys never goes above the cap below; Power off and Mute are never blocked by the cap or the configuration. Never tested with a real TV. Unofficial integration, not affiliated with Sharp.
IP addresses of the TVsstringNoSeparated by commas, for example 192.168.1.50, 192.168.1.51 (port 10002 by default, or 192.168.1.50:10008 if you changed the port on the TV).
Login ID (optional)stringNoOnly if you set a login ID in the IP control setup of the TV (the same for every TV above).
Password (optional)secretNoThe password set with the login ID on the TV. Kept by Gladys in its database, never shown again, and sent only to the TVs at the addresses above, when they ask for it.
Volume cap (1 to 100)numberNoThe highest volume Gladys may set, on the scale of the TV (0 to 60 on many models; 100: no cap). A higher volume asked by a scene, a voice assistant or the dashboard is set to this cap; unmuting, and powering on from Gladys (until the TV gives its volume, 2 minutes at most), also bring a higher volume back to it. The volume set with the remote is not changed otherwise.

How to install Sharp AQUOS in Gladys​

  1. In Gladys, open Integrations: Sharp AQUOS appears in the catalog, next to the native integrations, with a community badge.
  2. Click Install. Gladys pulls the Docker image (ghcr.io/lm1lc3n7/gladys-sharp-aquos:0.1.1), 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/LM1LC3N7/gladys-sharp-aquos.

Sharp AQUOS 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​

Sharp AQUOS 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 LM1LC3N7, 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 🙂