Integración domótica Sharp AQUOS, gratuita y de código abierto

Sharp AQUOS TVs, local: power, volume, mute, input and channel.
La documentación de esta integración la escribe su autor y, por ahora, solo está disponible en inglés.
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
- 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.
- 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).
- 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, or192.168.1.50:10008for 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 (noRSPW0): 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
| Feature | Type | Notes |
|---|---|---|
| Power | read only | 1 on, 0 standby or not reachable |
| Power on, Power off | buttons | Power off is protective (below) |
| Volume | slider 0 to 100 | capped by the configuration |
| Muted | read only | |
| Mute, Unmute | buttons | Mute is protective; Unmute lowers a volume above the cap first |
| Input | list | TV (tuner) or Input 1 to 9 |
| Channel | number 1 to 9999 | direct channel (DCCH) |
| Channel up, Channel down | buttons |
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.
Parámetros de configuración
Estos son los parámetros que Sharp AQUOS te pide en su pantalla de configuración en Gladys.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| Your Sharp AQUOS TVs, on your local network | section | No | Power, 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 TVs | string | No | Separated 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) | string | No | Only if you set a login ID in the IP control setup of the TV (the same for every TV above). |
| Password (optional) | secret | No | The 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) | number | No | The 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. |
Cómo instalar Sharp AQUOS en Gladys
- En Gladys, abre Integraciones: Sharp AQUOS aparece en el catálogo junto a las integraciones nativas, con una insignia de comunidad.
- Haz clic en Instalar. Gladys descarga la imagen Docker (
ghcr.io/lm1lc3n7/gladys-sharp-aquos:0.1.1), la ejecuta en un entorno aislado del núcleo y genera la interfaz de la integración (dispositivos, descubrimiento y configuración). - Abre la pantalla de Configuración de la integración, rellena los parámetros y guarda.
- También puedes instalarla directamente desde la URL de su repositorio: https://github.com/LM1LC3N7/gladys-sharp-aquos.
Sharp AQUOS requiere Gladys >=5.1.0. El catálogo de Gladys se actualiza cada hora, así que una nueva versión está disponible como máximo una hora después de publicarse.
¿Todavía no usas Gladys? Es gratuito y de código abierto: sigue la guía de instalación para empezar.
Sobre las integraciones externas
Sharp AQUOS es una integración externa: una integración comunitaria empaquetada como contenedor Docker y publicada en GitHub. Gladys la instala con un clic y la ejecuta en un entorno aislado del núcleo. La publica y mantiene LM1LC3N7, no el equipo principal de Gladys.
- Explorar todas las integraciones, nativas y de la comunidad
- Crear y publicar tu propia integración externa
- Código fuente en GitHub — fuente de esta documentación