Can I open another App with HAdashboard widget?

I intend to use HAdashboard with a couple of android tablets, wall mounted.

There are also other useful apps that I could use on a wall mounted dashboard, like orangesqueeze to control my squeezebox system, or the pebbleair app to control my heatpump. (Alas pebbleair has no integration with anything other than their own server).

It would be cool to have a widget in HAdashboard that would open an app, then when finished with the app the HAdashboard comes to the front again.

Is this possible?

i think that the first part should be possible, the second could be a little more difficult.

i would like such things in the future to, but that takes a while.

Where do i start then? Do I need to develop a new widget? I may go and have a look at the dashing examples and see if there is anything there.

i havent found such a widget yet.
i can open a link, but dont know if it is possible to open an app with javascript.

if not then it should be very easy to create a small app which displays the dashboard and has another page with app buttons.

right now i wouldnt know where to start.

Can you point me to the code for that and I’ll see if I can get some ideas.

I haven’t been able to make the dedicated squeezebox widgets work but you can use the squeezebox mini controller in the iframe widget.

I’ll need some more clues @BarryHampants

I assume this is the chrome extension you are referring to? https://chrome.google.com/webstore/detail/mini-squeezebox-control/emicaigjkpfbgljmoalhmmbheakjokhi?utm_source=chrome-app-launcher-info-dialog

But how do I get it into HADashboard?

To get the full window, which is too small on my tablet you would put something like this into your .erb file.

<li data-row="1" data-col="1" data-sizex="8" data-sizey="5">
  <div data-id="iframeId1" data-view="Iframe" data-src="http://192.168.1.10:9000/"></div>
</li>

the http://192.168.1.10:9000/ would be ip address or the page you load up in a web browser to access squeezebox. It looks like this in HaDashboard…

In the top right corner you can see a little pop down arrow thing with a box above it. If you click this box it offers to undock the player panel. If you undock you can get a smaller mini control panel, copy and use the address from that instead for the http bit - ie

<!-- <li data-row="4" data-col="5" data-sizex="3" data-sizey="1">
  <div data-id="iframeId1" data-view="Iframe" data-src="http://192.168.1.10:9000/status_header.html?player=e8:4e:06:bX:XX:a1"></div>
</li> -->

That gives you this mini panel. This includes the mac address so is locked to a single player but you could have 1 for each player if you wanted.

Thinking about it - it might be possible to launch an app intnet if you have an intent widget but I haven’t investigated this side of widgets. Since it has nothing to do with HASS or hapush you might have only have to work out how to get a weblink on the dashboard.

In your case the app intent would be com.orangebikelabs.orangesqueeze really just guessing but something like this? Or maybe look into tasker…

Intent launchIntent = getPackageManager().getLaunchIntentForPackage("com.orangebikelabs.orangesqueeze");
if (launchIntent != null) { 
    startActivity(launchIntent);//null pointer check in case package name was not found
}

Wow pretty easy, if I’d known about the Iframe widget I could have stopped over thinking this weeks ago LOL. Thank you so much.

Sorry. I guess I should have explained it better initially.

I’d still prefer to use the widget if I could, I might give this one a go when I have time as I’ve recently installed a new squeeze server on a pi to get google play incorporated - my old server (synology) is less co-operative.

I have that running, although I can’t track down why it doesn’t work properly.

  • doesn’t update properly
  • doesn’t show the cover properly.

Xmas holidays coming up so there may be some time to knock it all into shape.

sorry i missed this question.

probably a little late but:

Anyone trying to get this to work in appdeamon 4, with the latest cross-origin controls in browsers, you need a version of squeezebox(lms) server with the COR Allowed Hosts input in the Settings/Advanced/Security menu for the iframe player to work. Enter http://<ha_server_ip> to ensure the javascript works in the widget.
I just added an iframe widget with http://<squeze_server_ip>:9000 in the url_list