Skip to content
Discussion options

You must be logged in to vote

Hi! That seems like a really neat idea.

Personally, I think creating new apps might work quite well. Not just for Pattern Launcher, but potentially it allows you to have quick shortcut apps in the main launcher as well.

To do it, this might help: https://www.espruino.com/Bangle.js+First+App#app-info-timer-app-info

So you could have an optional boolean value in the ha app's web interface that said addToLauncher, and if set, it would do:

require("Storage").write("ha.1.app.info",{
  "id":"ha.1",
  "name":"Home Assistant Shortcut",
  "shortName":"Office", // whatever 'display' was set to
  "files":"ha.1.app.js",
  "src":"ha.1.app.js"
});
require("Storage").write("ha.1.app.js",`
var ha = requi…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@gfwilliams
Comment options

@Rafaesp
Comment options

@gfwilliams
Comment options

Answer selected by Rafaesp
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants