[RELEASE] HD+ - Android Dashboard

cool - thanks for the screenshots! That gives me an idea of how to design the music tile when there's no artwork to display.

I'll try to include Chromecast devices as well even though they don't report themselves as a "MusicPlayer".. are you able to send me a devicelog showing a few of your Chromecast devices playing music?

Here's what I see on my Google Home Mini when it's playing a song on YT Music. Also, I don't see support for prev/next track so I'm not sure what the HE app would do when you hit those buttons

 showDeviceOptions: TYPE_SPEAKER, 
{
    "attributes" : 
    {
        "volume" : "20",
        "mute" : "muted",
        "mediaSource" : "YouTube Music",
        "status" : "playing"
    },
    "capabilities" : 
    [
        "Actuator",
        "Initialize",
        "SpeechSynthesis",
        "AudioVolume",
        null
    ],
    "commands" : 
    [
        "play",
        "volumeDown",
        "playTrack",
        "stop",
        "setVolume",
        "volumeUp",
        "refresh",
        "unmute",
        "mute",
        "initialize",
        "speak",
        "pause"
    ],
    "id" : "380",
    "label" : "Google Mini (kitchen)",
    "lastUpdateTime" : 1609096224634,
    "name" : "Google Mini (kitchen)"
}

I would be happy to send a devicelog.
How exactly would I go about doing that?

To send a log from the app, open the nav drawer -> about -> support; that'll let you choose what app to send the log with.. typically an email app works best. I've been meaning to add an alternative option as well to upload the log somewhere for devices with no apps (such as a Wink Relay)

This is all I can get: image

The play/pause comes when it wants. :slight_smile:

Here is the log. Looks the same as your example above.
{
"id": "58",
"label": "Guest Room speaker",
"name": "Guest Room speaker",
"prefs": {
"sortOrder": 0,
"onIconColor": "",
"offIconColor": "",
"onBackgroundColor": "",
"offBackgroundColor": "",
"deviceType": "",
"onIconUrl": "",
"offIconUrl": "",
"onSound": "",
"offSound": "",
"isHidden": true,
"isWide": true,
"isTall": false
},
"attributes": {
"volume": "29",
"mute": "unmuted",
"mediaSource": "YouTube Music",
"status": "idle"
},
"commands": [
"play",
"volumeDown",
"playTrack",
"stop",
"setVolume",
"volumeUp",
"refresh",
"mute",
"unmute",
"initialize",
"speak",
"pause"
],
"capabilities": [
"Actuator",
"Initialize",
"SpeechSynthesis",
"AudioVolume"
]
},

Is that log from HE or HubDash?

HubDash.
Wasn't sure how to do the same via HE

Did you add a media tile?

media tile? Not sure what that is or how to add it.
music player?
or an attribute?

I added a music tile in HE dashboard -- not the Hubitat Dashboard.

@jpage4500
I'm having about a 20 second delay on my dashboard when viewing remotely (Cloud)

I change modes and 20 seconds later, it will change on the dashboard. I'm I doing something wrong?

Same here

@cuirbear

Good, I thought it was just me. Just took my new hub to my salon and Now I"m at home with my tablet viewing the dashboard remotely. I noticed anywhere between 15 and 20 seconds before the dashboard would update. I also have the Hubitat built in dashboard up and that changes within 1 second.

Looks like the HE dashboard (not to be confused with this app, Hubitat Dashboard.. shame on me for the confusing name..) does a refresh every 5 seconds in cloud mode. I'm refreshing every 30 seconds when in cloud mode. I can make it 5 seconds to match and make it a setting as well.

[HE dashboard settings]
image

Ideally I wouldn't have to do any polling in cloud mode - like local mode.. but that's going to require a way to send out push updates to the device from the hub - something that would likely require an app on the hub to do

I would ask you to please make the "waterfall effect" an optional setting. The effect runs twice on my S10 phone and other newer devices and not at all useful on old devices. Thank you!

2 Likes

My screen refreshes with animations about one per minute. Very distracting on my car head-unit while driving.

version 1.0.837 (beta)

  • make cloud refresh faster (2 secs)
  • update speaker layout to use new music player layout
  • fix bugs
  • only show device animation on app start

I updated the 'speaker' device type layout to use the same one as the new media player layout.. I tested on a chromecast which doesn't support many features like next/prev track or album art.. the tile will only show buttons which the device supports (play/pause, prev, next, mute/unmute, volume)

I also turned the animations off (except for the initial app open).. I like adding little animations to give the app a professional/polished look but I'll make sure any future ones are a lot smaller and not distracting

4 Likes

Speaker layout looks good. In order to allow for more items on the tile, can you allow tall as well as wide?

Play pause work once they've connected. Played spotify on a couple and radio on another. Can pause and play on each. Pretty slick.

What items are you looking for? If you're talking about Chromecast devices, mine don't support actions like prev/next track. 1 of my Google Mini devices doesn't have volume or mute attributes either so I'm hiding the volume slider and mute button.. I could still show them but I wouldn't know the current state (ie: does the mute button call 'mute' or 'unmute'?)

This is all I see in HE for 1 of my Google Mini's:
image

I can keep the volume slider and mute button displayed but disable them.

On your HE dashboard, do the prev/next buttons do anything? I'm guessing not but if so I can dig into it further
image