Skip to content

Vetro 0.7.2

Choose a tag to compare

@andrearicci93 andrearicci93 released this 27 Nov 16:29
· 13 commits to main since this release

Vetro 0.7.2 is a minor release: change channel and a Power state sensor for Home Assistant, the TV and HDMI tiles working again on 2025 Samsung TVs, keys sent from the app or a script reaching the tuner and the volume bar, a Remapper condition on the screen state, ordering of the Control center cards, two Sources page switches, and fixes from your reports and pull requests.

Install: there is no installer package to download. Install Vetro from Apps2Samsung, which builds and signs it for your TV, or follow the installation guide.

Update from 0.7.0 or 0.7.1: open the dashboard, go to Quick settings → General → Software update, press Check for update, then Update. Your settings stay. If the new version does not start, Vetro goes back to the previous one by itself.

Important

From 0.7.0 on a Tizen 6.5 or later TV (2022 and newer), restart the whole TV after the dashboard says Updating… (hold the remote's power button until it restarts, or unplug it for 30 seconds; standby is not enough), within 3 minutes. 0.7.0's updater restarts the service in a way that keeps the old code on those TVs. Updating from 0.7.1 restarts normally.

Note

Vetro 0.5.0 cannot update to 0.7.2 from the dashboard. Install 0.7.2 with Apps2Samsung instead.

Home Assistant (MQTT)

  • A Power state sensor. Home Assistant shows On while the TV's picture is on and Standby when it is off (Picture Off, or the TV's own standby), as an On / Standby choice you can use in automations (#304 by bmfurtado). It is read with the same short command as the volume and the input (one more setting, no program started), and it is unavailable on a TV where that setting cannot be read. Tried only in unit tests so far; the Q80A reads 1 with the picture on and 3 with Picture Off.
  • Change channel from Home Assistant, a script or a voice assistant. Vetro listens on <prefix>/<identity>/channel/set: send a channel number (31, or {"channel": 31}) and the TV goes there. With Vetro's tuner running and Samsung's live TV on screen it tunes at once; otherwise Vetro sends the digits as the remote would and Samsung's own TV app does the rest. Home Assistant gets a Tune channel number box by itself. Only digits 1 to 9999 are accepted, retained messages are ignored, and it shares the 500 ms limit of the MQTT rules. It does not turn the TV on. See app/docs/mqtt/README.md for the Alexa setup.

Live TV

  • The remote's Channel Guide key opens Vetro's TV guide (#340, read on a QN74F, Tizen 10). Samsung's own Guide key is code 130 on the firmware of 2021 to 2025; the tuner only knew the codes 362 and 365 of other remotes, so Samsung's guide opened instead. The tuner reads 130 as a Guide key now, like 362 and 365: it opens and closes Vetro's guide, and the Vetro UI key list warns if a shortcut of yours uses it. Not tried on a TV yet: whether Samsung's own guide still comes up behind it on this remote is for the reporter to say; until then the Remapper shortcut 130 → Up with interception on, which the report used, keeps working.

Remapper

  • Only when the screen is on, or off. A shortcut, or a Home Assistant / HTTP rule, can now be limited to the moments the picture is on or off (Picture Off), with a new choice at the end of both rule forms. The TV's picture state is read once, when such a rule fires; rules without the choice read nothing and work as before. With the picture off only Power (and Volume and Mute, while Vetro's Volume bar is off) reach a shortcut: any other key brings the picture back and does nothing else, so "off" is for those keys and for Home Assistant and HTTP rules. If Vetro cannot read the picture state the rule does not run. Rules with a condition are saved apart from the others (their own part of the shortcuts file), so going back to Vetro 0.7.1 keeps every other shortcut and the conditioned ones are still there when you update again (while on 0.7.1 they are simply not run). A Settings file that has one is refused by 0.7.1 for the Remapper part only, nothing is overwritten. The diagnostic report counts the rules with a condition and says how the last one was decided (met, notMet, unreadable). Tried in unit tests and the preview only, not yet on a TV.

  • Keys sent from the app, Home Assistant or a script now reach the tuner and the volume bar (#315, reported on a UA50AU7000). A key sent by name goes to the window that has the focus, which is the tuner's while Vetro TV Tuner is on screen, and the tuner only reads the remote's input device, so the key was lost (or Samsung's own channel list opened over the tuner). POST /control (the Vetro app, Home Assistant, a script) now goes through the same routing as the Remapper's Send key: the keys the tuner answers (arrows, OK, Back, digits, Info, Guide, Channel list) go to it while it is on screen, and Home goes to the launcher that holds it. Volume up, down and Mute, from /control and from a Remapper Send key, go to Vetro's volume bar like the physical keys while it is on, and by name when the launcher is not reading. The tuner also takes a reload word on its control pipe that reads the channel list again at once (it did so only after 10 minutes). Keys that come from Samsung's own remote server (SmartThings, the TV's WebSocket) reach the focused window before Vetro can see them and are not covered. Tried on a Q80A (the key by name and through /control); not yet on the reporter's TV.

Launcher

  • TV and HDMI tiles work again on 2025 Samsung TVs (#333, reported on an S95F and an S95H, Tizen 9, firmware 1301.0). The launcher switches an input with a request to Samsung's TV app that carries one of Samsung's own input icons, and it sent nothing when it found none. Samsung's 2025 firmware keeps those icons as WebP files where older TVs have PNG files, and Vetro looked only for PNG. It now accepts both, and when a TV has neither it presses the input's key, as the dashboard's Inputs page already did. The Sources page, pinned inputs and the Remapper take the same path. The diagnostic report's launcher events now say how an input was switched (source 16: request with icon, or no icon, key …), without the input's name. Found by reading the stock 2025 firmware package and the reporters' code pointer; not tried on a 2025 TV yet (the tests cover the icon choice and the key fallback). Names and pictures of the HDMI inputs (#297) are a separate matter and are not changed here.

  • The launcher no longer freezes the remote for 20 seconds after a crash, and comes back at once (#335 by swiezaczek, read on a 2023 S90C, Tizen 9). The volume bar's screen check started a program through .NET's Process, which EFL's own child handler can interfere with; on that TV the launcher aborted on the next program it started, and Samsung's crash handler then held every thread for about 20 s while the launcher kept the Home key grab, so the remote did nothing, followed by up to a minute until Vetro's supervisor started it again. The check now uses the same popen call as the rest of the launcher, the launcher marks itself as not dumpable so that handler does not stall it, and its systemd unit has Restart=on-failure (200 ms): after a crash it is back at once. Stopping it from Vetro is not a failure, so it stays down, and systemd's own limit (5 starts in 10 seconds) ends a crash loop. The probe now has no 500 ms limit (it runs in the background and only moves the bar's edge once it answers). Ported with comments; the reporter's tests on the S90C are in the pull request, the stop-versus-restart behaviour was checked on a Q80A.

  • Choose the order of the Control center cards (#337 by swiezaczek). Under Vetro UI, Launcher, Control center, a Card order bar shows the enabled cards in the order the launcher uses (Left and Right move through them on the TV). Drag a card to a new place, or hold and drag on a phone, or tap one card and then another, or pick one and use the arrow keys. The new order is held as a draft (an "Order changed" mark with Apply order and Cancel), so the launcher restarts once, when you apply. Turning a card on now adds it at the end instead of putting it back in the old fixed order. The launcher and the service already kept the saved order; this only adds the way to set it. Looked at in the preview with the tap route (the drag and touch routes are covered by the pull request's tests); not tried on a TV.

  • Two switches for the Sources page: Connected sources only, and Hide TV (#330 and #332 by enij90, read on a 2021 AU8070, Tizen 6.0). Both are off by default and live under Vetro UI, Launcher, Customization. Connected sources only lists TV and the HDMI ports Samsung's source caches report as connected; a port whose device is switched off reads as unplugged, and so does one the caches do not list at all, so it is left out until Samsung's cache says otherwise (the switch says so). Hide TV on Sources removes TV from the Sources page for a TV with no antenna: the tuner, Remapper keys to TV and a Live TV tile on the row are not touched, and TV stays if hiding it would leave Sources empty. Both are saved in the Settings file. Tried by the author on the AU8070 and in unit tests; not on another TV (the Q80A's cache lists no HDMI port, so Connected sources only would hide all of them there).

  • HDMI Source Images: a PC, a Blu-ray player or a box without a recognised picture gets Samsung's picture for its type (#297). For an input the user set to a device type, Samsung's list names an SVG, which the launcher cannot draw (the TV's picture library has no SVG loader on any firmware), so the tile kept Vetro's own icon. The same picture exists in Samsung's resources as a PNG (2020 to 2024 TVs) or a WebP (2025 Tizen 9 and Tizen 10) under the same name, and the tile now takes the one that exists. A device Samsung recognises keeps its own picture, which wins; the TV input and the ports without a type keep Vetro's icon; and if a file cannot be loaded the tile falls back to Vetro's icon as before. About three in four of Samsung's types have such a picture (the ones without are mostly speakers, headphones and USB-C). Checked against the stock packages of Tizen 6.0, 6.5, 9 and 10 and the Q80A's input list; the WebP form has not been shown on a Tizen 9 TV yet.

  • Custom launcher mode: Home starts your app without Samsung's four-dot loader (#334, read on a Tizen 9 TV). Pressing Home in custom launcher mode launched the app through Samsung's app loader, which draws its four-dot animation on every press, even when the app was already running. The launcher now starts it with app_launcher -e (start or resume without the loader), and falls back to the plain -s launch if -e fails. On the Q80A (Tizen 6.0), -e is there and started a stopped app in about half a second and resumed a running one in about 50 ms (the same pid), the same as -s; Home in custom mode started and resumed a user app there, with home-launch <id> rc=0 in the launcher's log. Whether the loader animation is really gone on a Tizen 9 TV is for the reporter to confirm (the reporter's own test showed it gone).

  • The Picture mode card opens faster where Samsung offers a one-call check (#276 by swiezaczek, read on a 2023 S90C, Tizen 9). Opening the card asked Samsung's picture service about 22 modes with 22 busctl calls, and on Tizen 9 busctl also misreads the one-call form. The launcher now asks once with dbus-send (CheckPictureModeByGroup, about 35 ms on the S90C) and uses the old per-mode checks whenever the answer is not complete. The 2021 Q80A (Tizen 6.0) has dbus-send but its picture service has no such method (UnknownMethod), so there the card takes the old route, as before, plus one failed call of about 20 ms; the old route took 0.3 s for the 22 modes on it. Not tried by me on a Tizen 9 TV.

  • The 123 pad no longer takes the window focus from a dialog underneath (#260 by swiezaczek, read on a 2023 S90C, Tizen 9). Opening the pad moved the window focus to it, and Samsung dialogs that read a lost focus as a cancel (the Apps 12345 prompt, Developer Mode's Host PC IP) closed before a digit could be typed. The pad now skips the focus and grabs its keys at top position (the way Samsung's own virtual remote does), and while it is open the remote's raw key codes go to it, not to the launcher or the Task manager beneath. If the grab is refused the pad falls back to taking the focus as before and logs pad: keygrab failed. On the Q80A (Tizen 6.0): the grab is accepted (no fallback line), the 17 grabs of the dock exist only while the pad is open (none after it closes), the arrows and OK move and type in the pad over live TV and over a running app (Stremio) without the app or the tuner reacting, the focus stays on the app and Back closes the pad. Not tried: the Apps 12345 and Developer Mode dialogs themselves (the reporter's case), and a TV where the grab fails.

Dashboard

  • Sign-in cookie on six more calls, and two places that escape names (#265 by swiezaczek). With pairing on, six of the dashboard's own requests (the diagnostic download, uninstall, plugin install, the wait for the new version after an update, Apply update, and the Remapper's listen stop when the page closes) did not send the session cookie in browsers whose default is to leave it out (before Chrome 68 and some embedded web views), so the service answered 401. They now ask for it on the same origin only; the calls to GitHub and the Shard catalog still send none. A Shard's card name in the Overview and a setting's id, range and value in the settings editor are now escaped like the rest of the page.

Quick settings

  • Keep TV-Store running with the TV (Experimental). Some firmware drops TV-Store's start-at-boot flag every time TV-Store is installed or updated, so its switch "Update while TV-Store is closed" does nothing. With this switch on, Vetro puts that one flag back (the same write as the Task manager's startup switch) at every start and every half hour, and turning it off puts the flag back the way the firmware had it when Vetro was the one that set it. It is off by default: where the flag is on, TV-Store's service runs from the start of the TV and its port 8077 is open in your home network, even with every switch of TV-Store off. TV-Store's Settings say when the TV last started it by itself. Idea and first version as a Shard by PatrickSt1991 (vetro-plugins#47).