Remote Self-Control 1.0 – from a backlight switch to (almost) a full web configurator, running on the remote

When I started this project the goal was simple: change the button backlight, and maybe the screen brightness, from a button or a macro on the remote. With this latest release it has grown into almost a full replacement for the Unfolded Circle web configurator.

Remote Self-Control 1.0.0 is a custom integration that runs on the Remote 3 (and Remote Two) itself. You set everything up in a browser page that the integration serves from the remote. No PC, server or cloud is needed.

What’s new in 1.0: the Page Editor

Edit your remote on a picture of it:

  • Drag and drop pictures and widgets onto your activity pages. The Pictures window sits right next to the remote’s screen, at the same size the pictures will have on the buttons. It includes the remote’s own built-in icons and pictures from your computer.
  • What it does: click a button, pick a device and a command, or just search (“shield movies”).
  • Physical keys and the touch slider: click them on the drawing.
  • Start/stop sequences with a guided setup. Add a new device to an activity and it asks what kind of device it is (TV, receiver, streaming box, amp/sub, Home Assistant…). It then puts the on/off steps in the right order, with sensible waits.

  • Activity groups explained in plain words, plus home screen, macros, and devices & integrations.
  • Android TV app links: load a text file of market://launch?id=… = Name lines, and Tivimate, Jellyfin and the rest show by name everywhere.
  • Themes: dark mode, remote style, midnight blue and more.

Safe by design:

  • Before its first change of each visit it saves a full remote backup, the same file as the web configurator’s.
  • It re-reads pages before saving, so it never overwrites something it didn’t change.
  • It waits to save the activity that’s on screen until you leave it.

Everything else it does

  • Smart Controls: buttons with if / else logic. “If the receiver is on, turn it up, otherwise the TV.” “If the Shield is playing, jump to the Apps page.” There are templates for Night Mode, smart volume, inputs that wait for the receiver to boot, and more.
  • State icons: a button that turns green when the receiver is on.
  • Sliders and quick menus for any number or list on your devices, with the remote’s own pop-ups and the touch slider. Level pictures come in 16 designs (gauge, bar, battery…) and change color with the value.
  • Controls: point the volume rocker and touch slider at a light or the screen brightness for a moment, with the remote’s volume pop-up.
  • :right_arrow_curving_left: Return to the previous activity, page jumps and start pages.
  • Smart Launchers: one button that opens whichever activity fits right now.
  • The remote’s own settings as entities: backlight level and color, display brightness, sleep, sound, haptics…
  • Backup and restore, including Integration Manager’s Backup Config.

Get it

Please back up your remote’s configuration in the web configurator before installing. It changes activities, pages and settings. So far it has been tested on my own Remote 3, so feedback, bug reports and ideas are very welcome in this thread or on GitHub.

5 Likes

I’m just starting to have a play with this and it does look great.

Wondering if there is a way to add some logic into startup sequences or whether there is scope to do this in a future release.

Ie something like if HDMI switcher is not responding wait until it does and then apply HDMI input.

I kill my AC power to many things and it takes the switcher awhile to come up on IP.

Have started using other features already

You should already be able to do this in smart controls the is a wait until function. Create an entity with this function and add it to your start up sequence.

1 Like

It’s been a while since the 1.0 post, so here’s what Remote Self-Control has picked up between 1.0.0 and 1.3.6. It’s a custom integration that runs on the Remote 3 (and Remote Two) itself, and you set it up in a browser page the integration serves from the remote. No PC, server or cloud is needed.

Display sensor

Display sensors (new in 1.3)

Text on a page that keeps itself up to date. Each display is its own sensor entity, shown with the Page Editor’s sensor widget.

  • A default to show: a device’s value, one of your sliders, the remote’s battery, the time, the activity on screen, or messages one after another. Add text before and after it, plus symbols, emoji and the remote’s own icons.
  • Values as a number or a bar: “:speaker_high_volume: −35.0 dB”, “:television: :green_square::green_square::green_square::white_large_square::white_large_square: 60 %”.
  • Temporary changes that take over for a few seconds or while something is true:
    • when a value changes, or goes above or below a number
    • while a Control is on
    • when an activity starts (“Starting… | Enjoy!”)
  • A smart control step “Show on a display” for things like “Ding dong | at the door”.
  • A preview of the display on a remote screen at its widget size and page grid (2 × 3 up to 8 × 12).

I ran three rounds of tests on the remote first to find which characters its font has. Block characters like █░▒ show as empty boxes, so the bars only use ones that work.

Statistics (new in 1.1)

A Statistics tab, collected on the remote while the integration runs:

  • which activities you use, for how long and when (weekday × hour)
  • screen-on time and idle drain
  • the battery level over the last week, and how long a charge lasts at your usual use
  • the battery each activity uses while off the dock

Since 1.3 it also records which app a SHIELD, Roku or other player is showing during an activity (Netflix, YouTube, HDHomeRun…), and the battery used per app. Everything can be downloaded as CSV.

Image Fusionner tiles (new in 1.3.6)

Image Fusionner is my companion tool for making button-grid skins. It cuts a background into 90 × 90 tiles for a 2 × 3, 4 × 6, 6 × 9 or 8 × 12 page, then decorates them with buttons, icons, logos, overlays, text and borders from a plain-text layout file. It runs on Windows with PowerShell 7 and a bundled ImageMagick, straight from its folder with nothing to install.

Image Fusionner 1.1.0 is out too. It’s the layout editor release:

  • A visual layout editor (double-click Start GUI.cmd) that runs in your browser. You get a live preview over the background, click and drag tile selection, picture pickers with search, undo / redo, and Render tiles with its log.
  • No lost work: automatic saving, a backup before each overwrite, and unsaved edits kept in the browser.
  • Six themes, and a Remote builder button that opens the Remote Self-Control builder.
  • Your existing layouts keep working: script.ps1 and the layout format are unchanged.

:package: Image Fusionner 1.1.0: Release Image_Fusionner Gets a GUI · Sat32blk/Image_Fusionner · GitHub

In Remote Self-Control, set the Image_Fusionner folder in :gear: Settings and its rendered tiles show up in the Pictures window. You get one folder per layout, laid out as wide as your page.

  • Click or drag a tile onto a button.
  • On an empty page with the same grid, + Add to page puts every tile on its own spot.
  • ↻ Reload tiles after a render picks up new layouts and drops deleted ones.

Level pictures and sliders

  • Level pictures reworked (1.2): 22 designs, including a new big Text one (“62 %” filling the whole area). Drag an orange frame on the page to set the area (up to 2 × 4 and the like). Colours can blend smoothly or run as a gradient inside the picture, and there’s an optional text label.
  • Finer steps (1.2.9): 11, 21, 51 or 101 pictures, so a single volume press shows. Levels update the page within about 0.8 s.
  • Smart controls can move your sliders (1.2.4): step up, step down, ±5 or set a value. You can map two smart controls to the volume keys for “Samsung volume up / down”.
  • Sliders that count presses on devices that don’t report their level start from zero, re-sync at the bottom, and add up quick presses.
  • One group for everything the integration made: sliders, quick menus, smart controls and switches are listed together as “Remote Self-Control (made here)” in every device picker.

The builder

  • One look on every tab (1.0.8). The Page Editor’s Pictures window now sits beside every editor that takes a picture: state icons, sliders, quick menus, :right_arrow_curving_left: buttons and Smart Launchers.
  • Home screen icons (1.0.10). Drag a picture onto a home screen tile to give that activity, macro or device its icon.
  • The Page Editor is no longer beta.
  • Safer saving (1.0.7). The integration no longer makes a full remote backup before changes, because the remote stops every integration while it does that. It now keeps its own copy of your activities, groups, macros and home screen (Last copy before changes). Keep making full backups in the web configurator.

Get it

To install, open the web configurator and go to Integrations → Add new → Install custom. Pick uc-intg-self-control-1.3.6.tar.gz and tick Update existing driver; your settings are kept.

:warning: Back up your remote in the web configurator before installing. I’ve only tested this on my own Remote 3, so feedback and bug reports are welcome.