Windows > Third Party Plug-ins, Programs, and Skins
Home Assistant integration for jriver
mattkhan:
here's a snippet of my ui
--- Code: ---- type: entities
show_header_toggle: false
entities:
- card_type: vertical-stack
type: custom:hui-element
cards:
- card_type: horizontal-stack
type: custom:hui-element
cards:
- name: -5m
tap_action:
service: jriver.seek_relative
target:
entity_id: media_player.paradroid
data:
seek_duration: -300
template: thin_button
type: custom:button-card
- name: -30s
tap_action:
service: jriver.seek_relative
target:
entity_id: media_player.paradroid
data:
seek_duration: -30
template: thin_button
type: custom:button-card
- name: -1s
tap_action:
service: jriver.seek_relative
target:
entity_id: media_player.paradroid
data:
seek_duration: -1
template: thin_button
type: custom:button-card
- name: +1s
tap_action:
service: jriver.seek_relative
target:
entity_id: media_player.paradroid
data:
seek_duration: 1
template: thin_button
type: custom:button-card
- name: +30s
tap_action:
service: jriver.seek_relative
target:
entity_id: media_player.paradroid
data:
seek_duration: 30
template: thin_button
type: custom:button-card
- name: +5m
tap_action:
service: jriver.seek_relative
target:
entity_id: media_player.paradroid
data:
seek_duration: 300
template: thin_button
type: custom:button-card
- type: custom:stack-in-card
cards:
- type: custom:mini-media-player
entity: media_player.paradroid
max_volume: 80
volume_step: 1
artwork: full-cover
hide:
jump: false
play_stop: false
runtime: false
runtime_remaining: false
power_state: false
view_layout:
grid-area: media
shortcuts:
columns: 5
buttons:
- icon: mdi:power-plug-off
type: script
id: script.stop_all_playback_in_cinema
- icon: mdi:alpha-a-box-outline
type: script
id: script.hdr_mode_auto
- icon: mdi:numeric-1-box-outline
type: script
id: script.hdr_mode_one
- icon: mdi:numeric-2-box-outline
type: script
id: script.hdr_mode_two
- icon: mdi:numeric-3-box-outline
type: script
id: script.hdr_mode_three
card_mod:
style:
.: |
ha-card div.mmp-player {
padding-bottom: 0px;
}
ha-card div.mmp-player__adds {
margin-left: 48px !important;
}
- type: media-control
entity: media_player.paradroid
card_mod:
style: |
mwc-linear-progress {
display: none;
}
div.media-info {
display: none;
}
div.top-info {
display: none;
}
div.background {
display: none;
}
ha-icon-button {
display: none;
}
ha-icon-button.browse-media {
display: block;
padding-right: 10px;
}
mwc-icon-button {
padding-top: 0px;
}
div.title-controls {
padding: 0 0 0px;
}
.no-progress.player {
padding-bottom: 16px !important;
}
div.player {
color: inherit !important;
}
div.off {
display: none;
}
- card_type: horizontal-stack
type: custom:hui-element
cards:
- name: -5dB
tap_action:
service: jriver.adjust_volume
target:
entity_id: media_player.paradroid
data:
delta: -5
template: thin_button
type: custom:button-card
- name: -3dB
tap_action:
service: jriver.adjust_volume
target:
entity_id: media_player.paradroid
data:
delta: -3
template: thin_button
type: custom:button-card
- name: -1dB
tap_action:
service: jriver.adjust_volume
target:
entity_id: media_player.paradroid
data:
delta: -1
template: thin_button
type: custom:button-card
- name: +1dB
tap_action:
service: jriver.adjust_volume
target:
entity_id: media_player.paradroid
data:
delta: 1
template: thin_button
type: custom:button-card
- name: +3dB
tap_action:
service: jriver.adjust_volume
target:
entity_id: media_player.paradroid
data:
delta: 3
template: thin_button
type: custom:button-card
- name: +5dB
tap_action:
service: jriver.adjust_volume
target:
entity_id: media_player.paradroid
data:
delta: 5
template: thin_button
type: custom:button-card
--- End code ---
pic attached (usually there's a background image there, looks like someone watching something before tags had been updated to add art)
sjhilton:
Thanks Matt - I'll give that a go and do some tinkering. Certainly the play/pause functionality works with that player. I might also try to build a file info tile that picks up the playing now attributes.
beatonnz:
Hi Matt: Thanks for this Home Assistant Integration. I looked at Home Assistant some years back but found it was too unfriendly and learning curve was steep - plus I am a long time user of MC and have four servers running on Raspberry Pi's these days which have worked flawlessly and thus no desire to move away from MC. Previously I did not see how I could use MC with Home Assistant so just dropped the whole idea but have come back to it and it is more friendly now and your integration solves my inability to bring MC into Home Assistant. Followed your instructions and it set up nicely. Changed over to the mini-media-player you recommended which does have working play/pause/back/forward.
I have two problems to overcome:
1) Even with new min-media-player pushing the power button still freezes up MC server. I tried toggling the button off in settings but it didn't make any difference. Looked to see if I could find the button in YAML to see if I could comment it out but couldn't find anything. It will be important for me to fix this before I roll it out for whole house use as my family users are bound to use the power button to try and stop it. Have you found a way to do this?
2) I do have version 0.2.7 which you noted has working playlists but my playlists are not showing up anywhere - is there something I have to add to get them to show up?
I am a noob on Home Assistant but trying hard to learn it. A little better on Linux/MC.
Thanks for your integration and assistance.
mattkhan:
What version of MC are you using?
mattkhan:
assuming the media player calls media_player.turn_off then this is implemented as calling the following
Playback/StopAll
MCC 20007,0
which works fine here so not sure why it would freeze for you
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version