[APP][Pro] Web Dashboard – Homey dashboards in a web browser (proof of concept)

I’ve been working on an app that shows the dashboards you build in the Homey app in a web browser on your home network. I use it on a tablet on the wall; it should also work on a laptop or a TV.

Proof of concept. It works on my Homey and is available as a test version (test versions aren’t reviewed by Athom). It uses parts of the Homey Web API that aren’t documented (dashboards, moods and camera streams), so I’m not sure Athom will accept it for the regular App Store like this, and a firmware update could break it.


What it does

  • Shows the dashboards you made in the Homey app and updates them live. You switch dashboards by tapping the name at the top.
  • Supports the built-in widget types I know of: favorite and selected devices, Flows and moods; a zone’s devices, moods and lights; lights, speakers, thermostats, energy, Insights charts, sensors, zone controls, the timeline, batteries and low batteries, weather, variables, notes, camera snapshots and live cameras, web pages and dashboard shortcuts.
  • Widgets from other apps work too. They run in a sandbox, so they can’t read the API key. A widget that needs to remember something can get storage and still stay sealed off, or you can trust it to run as it does in the Homey app.
  • Edit mode: move and remove widgets, and change a widget’s settings like in the Homey app: its title, the devices, lights, Flows, moods, variables or dashboards it shows, a chart’s Insight and time span, a note’s colour, the timeline’s categories and an app widget’s own settings.
  • Tapping a device opens its controls: on/off, dim, colour and white temperature, blinds, the thermostat dial and locks.
  • Live camera video uses Homey’s built-in stream conversion.
  • Flow cards (thanks to @Erikvl87): show a dashboard or highlight a widget large or full screen, on every screen or one named screen. The door camera when the bell rings, for example. Flows can also check and close a highlight, and react when it closes.
  • Light and dark mode follow your device.
  • Browsers don’t need their own API key. You save one key in the app’s settings, a new browser shows a code, and you approve it in the Homey app. The settings page also checks the key and lists permissions that are missing or broader than needed.
  • There’s a kiosk mode for wall tablets: it stays on one dashboard, goes back to it after two minutes without a touch, and unlocking it needs an approval in the Homey app. On an iPad you can add it to the home screen to hide Safari’s address bar.
  • Fit to screen width shrinks the dashboard until all its columns fit, instead of scrolling sideways.
  • Open dashboards reload by themselves after the app is updated.

The page is served by the Homey itself, so there’s no separate server to run.

Limitations

  • Needs a Homey Pro on firmware 13. I’ve only tested it on a Homey Pro (Early 2023) with 13.5.3. A Homey Self-Hosted Server should work too, but nobody has confirmed it yet. It doesn’t work with Homey Cloud.
  • Only works on your home network (it uses the *.homey.homeylocal.com address), no remote access.
  • Adding widgets and creating, renaming or deleting dashboards still happen in the Homey app. So do the settings of zone, camera, sensor, zone control and web page widgets, and a note’s text.
  • Editing needs a key with the Dashboards permission (homey.dashboard). A key without it shows the dashboards but can’t change them.
  • Some device controls are missing: mode pickers (fan speed, for example), buttons (like “open lock”), and the sensor, battery and media tabs.
  • I couldn’t test the dynamic electricity prices widget because Athom still does not provide them for Austria…
  • Web pages that don’t allow embedding (Google, for example) stay blank.
  • All paired browsers share one API key. You can sign out a single browser on that browser; signing out all of them means replacing the key.
  • Whether the screen stays on depends on the browser. On an iPad, set Auto-Lock to Never.
  • English only.

Trying it

Test version: Web Dashboard | Homey

After installing, open the app’s settings in the Homey app, create the API key as described there and open the address it shows.

Source code and issues: GitHub - stefan-schweiger/dev.schweiger.dashboard: Homey app that shows your Homey dashboards in any browser on your home network · GitHub

If something breaks on your setup or a widget looks different from the Homey app, let me know here or open an issue. Side-by-side screenshots help.

This app sounds great! I am running Homey on 13.5.3 (Homey Pro - Early 2023) but I seem to lack the Dashboards or Energy scopes option in the API key configuration. Is there any other requirement for these to show up?

Edit: Fixed it. Those scopes are actually hidden from the API form but with some tweaking I have added the missing scopes homey.dashboard.readonly and homey.energy.readonly.

This is really awesome!

Yeah you got me there didn’t check that they are not in the UI to be honest :sweat_smile: So for people using the UI they need to use a key with full access.

No worries, figured it out pretty quickly. I do wonder: now that you’ve shown it can be done with these partly hidden APIs, is Athom actually working on building a web dashboard view like this themselves? Again, I love this app, thanks! I can finally ditch BlueStacks.

I hope you don’t mind, but I’ve opened a few PRs on GitHub while using the app on my wall kiosk:

  • #1 Option to fit the dashboard to the screen width
  • #2 The camera’s full-screen button now also exits full screen (a kiosk has no Esc key)
  • #3 The zone devices widget no longer shows an error when all device types are selected
  • #5 Open dashboards reload themselves after the app is updated
  • #6 App widgets can now only call their own widget API, not the rest of Homey’s API with the dashboard’s API key

Feel free to change or skip anything that doesn’t fit your plans, and if you have any feedback, please let me know!

Just FYI, the app WidgetKeeper does almost the same (although you need to create a dashboard in the web app, instead of using the existing homey dashboard), where you csn add default and apps widgets. :wink:

They said they would rather use their development resources for building other features. But it took me 2-3h to build that with claude, so yeah :man_shrugging: Will take a look at your PRs tomorrow.

@Erikvl87 I merged all 5 of your PRs and published a new test version. Thank you very much.

Hi Stefan, thanks for merging my previous PRs so quickly!

I’ve opened another one for a scenario that felt obvious with a wall tablet: letting Flows control what’s shown. You can name each open screen (e.g. “Hallway tablet”) and use Flow cards to switch it to a dashboard, or to highlight a single widget large or full screen, like the doorbell camera when someone rings or the energy prices when consumption is high.

Details are in the PR:

Edit: I also opened a small follow-up fix so a highlighted camera shows live video straight away when the screen’s own dashboard is already playing it in another widget: fix(camera): share one live stream per camera between widgets by Erikvl87 · Pull Request #9 · stefan-schweiger/dev.schweiger.dashboard · GitHub

Those PRs are already merged btw. Will probably create a new version later today. Great contributions!

I pushed version 1.3.0 which includes the following changes:

New: edit dashboards from the browser. Edit moves, edits and removes widgets, and a widget’s settings work like in the Homey app: its title, devices and its app’s own settings. App widgets that need storage can get it while staying sealed off from the API key, or be trusted to run as in the Homey app. Editing needs a key with the Dashboards permission (homey.dashboard). Fixed: app widgets sized as a share of their width are no longer cut off, and popups from app widgets can no longer reach the dashboard’s stored key.

Also still from version 1.2.0:

New: Flow cards to show a dashboard or highlight a widget large or full screen (the door camera when the bell rings, for example) on all screens or one named screen, check and close the highlight, and react when it closes. Screens are named in the app settings. Live cameras: widgets showing the same camera share one stream, so a second one shows video at once.

Depending on how much time I find I will look into editing the settings for the “official” widgets as well and then adding new widgets to the dashboards.

Wow really nice @staeff !
I was tinkering last weekend with the same, but claude didn’t want to help me because of the recent security measures.

Love it!

I wouldn’t hold my breath just yet, but on Slack it was mentioned that web dashboards might be something that Athom will also do. So maybe see this more as a interim solution till then :slight_smile:

its-classified-thats-classified