INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 2 [3]   Go Down

Author Topic: Home Assistant integration for jriver  (Read 10930 times)

mattkhan

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4186
Re: Home Assistant integration for jriver
« Reply #100 on: October 19, 2024, 09:40:49 am »

Logged

sjhilton

  • Junior Woodchuck
  • **
  • Posts: 95
Re: Home Assistant integration for jriver
« Reply #101 on: October 20, 2024, 07:36:31 pm »

latest version includes 2 additional sets of sensors

sensor.<mediaserver>_<zone>_audio_is_direct
a boolean showing whether audio playback is direct or not

sensor.<mediaserver>_<zone>_playlist
a sensor with extra attributes which is a list of items from the current playlist in that zone

I'm not sure if this format is ideal for rendering, it's probably usable in a markdown card using some template or you could install https://community.home-assistant.io/t/flex-table-card/461173 like so

Code: [Select]
views:
  - title: Home
    cards:
      - type: custom:flex-table-card
        entities:
          include:
            - sensor.paradroid_music_playlist
        columns:
          - name: Artist
            data: entries
            modify: x.Artist
          - name: Album
            data: entries
            modify: x.Album
          - name: '#'
            data: entries
            modify: 'x[''Track #'']'
          - name: Name
            data: entries
            modify: x.Name
    type: custom:vertical-layout

if there's some other format that makes more sense and/or some good card to use for it then do share that

Thanks mattkhan - this looks great - my only suggestion would be to try to add a play icon in a separate column where the track/item is playing now. I've tried doing this with a few different cards, including this one and unfortunately haven't been able to figure it out. (In response to your next post - agree it would be great to have access to the image file somehow)
Logged

mattkhan

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4186
Re: Home Assistant integration for jriver
« Reply #102 on: October 21, 2024, 04:35:14 am »

Perhaps, you could probably do that yourself by creating an extra column formatted as appropriate
Logged

mattkhan

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4186
Re: Home Assistant integration for jriver
« Reply #103 on: October 22, 2024, 03:04:27 am »

another way to handle this playing now situation is via https://yabb.jriver.com/interact/index.php/topic,139901.0.html if that gets implemented
Logged

mattkhan

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4186
Re: Home Assistant integration for jriver
« Reply #104 on: October 22, 2024, 03:16:34 am »

latest version adds ImageURL as an attribute on each entry (which gives a url to get a small thumbnail so you can include the pic in the playlist if you want to)
Logged

mattkhan

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4186
Re: Home Assistant integration for jriver
« Reply #105 on: October 26, 2024, 02:50:34 am »

another update to support Playing Now in the remote view definitions (though it doesn't work properly yet due to a bug on the MC side) requires 33.0.37 to have this option available
Logged

sjhilton

  • Junior Woodchuck
  • **
  • Posts: 95
Re: Home Assistant integration for jriver
« Reply #106 on: October 26, 2024, 09:13:06 pm »

I've developed a new playlist card. Playing now track is bold and current time elapsed displays in brackets. This is based on the new playlist sensor. You can also add a player entity at the top (generic HA one). If anyone's interested please let me know and I'll share the code. This uses custom:hui-element with a markdown card
Logged

avpman

  • Galactic Citizen
  • ****
  • Posts: 445
  • Dad to three beatuiful Boxers by rescue.
Re: Home Assistant integration for jriver - Playing Now
« Reply #107 on: October 27, 2024, 10:39:45 am »

Is there a Playing Now view available showing all the tracks queued? If so, I can't find it. It would be a great addition.

Did this get added? Sorry, I'm a little behind in the updates.
Logged

sjhilton

  • Junior Woodchuck
  • **
  • Posts: 95
Re: Home Assistant integration for jriver
« Reply #108 on: Yesterday at 09:58:54 pm »

Hi mattkhan - I'm not sure if this is feasible, but it would be great to have either a search or filter function. Eg a filter function that could be applied to the 'browse media' popup when it opens. I've tried crafting my own with a variety of different custom cards and javascript, but it's proven quite difficult to get working. Just a thought.

That's probably the last thing I can think of from a usability perspective. The HA integration is certainly now my preferred way of interacting with MC and my library. Thanks for all of your work on this.
Logged

mattkhan

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4186
Re: Home Assistant integration for jriver - Playing Now
« Reply #109 on: Today at 04:28:39 am »

Did this get added? Sorry, I'm a little behind in the updates.
the data is there, you need to configure some view yourself to display that
Logged

mattkhan

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4186
Re: Home Assistant integration for jriver
« Reply #110 on: Today at 04:30:21 am »

Hi mattkhan - I'm not sure if this is feasible, but it would be great to have either a search or filter function. Eg a filter function that could be applied to the 'browse media' popup when it opens. I've tried crafting my own with a variety of different custom cards and javascript, but it's proven quite difficult to get working. Just a thought.

yes definitely, this is a big gap in the media browse feature in the HA UI (along with the ability to customise what information is shown) and the main thing missing from my old custom UI. It's a moderately sized undertaking to create such a custom card though and I don't like javascript very much so haven't been inclined to make one yet.
Logged

avpman

  • Galactic Citizen
  • ****
  • Posts: 445
  • Dad to three beatuiful Boxers by rescue.
Re: Home Assistant integration for jriver - Playing Now
« Reply #111 on: Today at 08:24:49 am »

the data is there, you need to configure some view yourself to display that

Hopefully, someone could share what they've done. I'm still relatively new to HomeAssistant and have no idea how to accomplish this.
Logged

mattkhan

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4186
Re: Home Assistant integration for jriver - Playing Now
« Reply #112 on: Today at 08:28:41 am »

Hopefully, someone could share what they've done. I'm still relatively new to HomeAssistant and have no idea how to accomplish this.
there was a basic example in https://yabb.jriver.com/interact/index.php/topic,137808.msg969917.html#msg969917

sjhilton's version looks nicer (I made no attempt to format mine, it was just to illustrate)
Logged
Pages: 1 2 [3]   Go Up