Repository navigation
26.11.18beta
Pre-release
Pre-release
26.11.18 beta
New widgets
- Console Stats. Shows CPU and SoC temperature, fan speed, free space, and uptime, and warns when the console reports a thermal alert. At the larger sizes it adds a usage bar for each drive (console storage, M.2, USB). Options switch between °C and °F and set the refresh rate.
- Home Assistant. Shows and controls your Home Assistant entities with live state: lights, switches, sensors, climate, covers, locks, media players and more. Press X on an entity to toggle or run it. The full-screen page adds brightness, speed, position and volume sliders, target temperature and mode for climate, and an entity chooser with search. Unlocking a lock or opening a garage door asks first. It needs your server's address and an access token in its
config.json; see its README for setup.
New for widget developers
- Full-screen pages. Register a page with
wh.registerPage(Page)and open it withprops.openPage(params). It slides in over the hub like the stock Settings screen, and Circle closes it.docs/sdk/pages.mdalso lists the stock page layout to copy. - Lists.
wh.Listis the console's own scrolling list, the one Settings uses. Fill it withwh.MenuListItemPSrows (button, switch, dropdown, selectable) to build a Settings-style page. - Text input. Pages can use
wh.TextInput. Pressing X on the field opens the system keyboard, and the page gets the text as you type and when you press Done. - Hub state.
props.hubVisibleis false while a page, Settings or the screensaver covers the tiles. Use it to pause polling.props.hubFocusedis false while the user is on the game row, or the Control Center or keyboard is open.- Pages can read the same state with
wh.useHubState().
- Locale.
wh.useLocale()returns the console's language, 12/24-hour setting and date format. It updates when the setting changes. - Sounds.
wh.playSound(name)plays stock UI sounds:enter,back,error,switchOn, dialog and toast sounds, and more. - Storage.
props.storage.get / set / removekeeps small values per widget. They're stored per user and survive reboots, even without the payload. - Notifications.
wh.notify(text)shows a system notification. - Dialogs.
wh.AlertDialogPSis the stock alert dialog, with a title, positive and negative buttons, and Circle to dismiss. - MINI widgets can hide themselves. Call
props.setVisible(false)while there's nothing to show, or add"visible": falseinconfig.jsonto start hidden. A hidden MINI takes no space and can't be focused. - Settings use the stock options menu. Pressing Options on a widget with settings opens the same menu the stock widgets use.
- Stock icon ids.
docs/sdk/icons.mdlists the 1089iconIds the console accepts.wh.IconPS.iconIdslets a widget check an id at runtime. - Launching games.
wh.launch('psgm:play?id=<titleId>')starts a game, andpsgamehub:main?titleId=<titleId>opens its game hub.
Improvements
- Custom placements survive a boot without the payload. Booting without the payload, then saving the layout, used to drop your custom tiles for good. The payload now keeps a backup of your layout and puts the tiles back the next time it loads.
- Privacy. Custom widget ids are no longer included in the hub's startup telemetry.
- Stock look. Tiles use the hub's own background, the same as the stock tiles. The sample widgets no longer draw a second one.
- Smaller bridge patch. The bridge now patches 8 hub functions instead of 12, which makes new firmware easier to support.
Samples
- Hello Hub has a settings menu: clock format, which follows the console's 12/24-hour setting by default, and seconds. Its "Full screen" chip opens a large clock page.
- Payload Monitor and Payload Launcher pause polling while the tiles are covered.
Notes
- Tested on FW 13.20. FW 13.60 is supported, but these features haven't been tested on it yet.
- Install through Payload Manager with the custom source
https://raw.githubusercontent.com/geodox/ps5-wh-widgets/main/repo.json, or manually. See the README.