Mon problème
Bonsoir,
Je me heurte a un problème, j’ai suivi un tuto (https://leonardosmarthomemakers.com/how-to-create-a-home-assistant-dashboard-media-edition/) pour faire une carte avec des boutons pour lancer des application (Netflix,Disney, …) et affichage de carte custom mini media player sous condition. Du coté des boutons tout fonctionne, ca démarre bien mes apps mais la ou il y a un problème, c’est que les mini media player ne s’affiche pas, quelque soit l’application que je lance. Pouvez-vous me dire dans le code qui suit, a quoi correspond « state: idle » en faite je ne comprend pas le idle. De plus dans cette meme card, a quoi sert le input_select.media ? Merci d’avance a celui qui prendra le temps de me lire.
- type: grid
cards:
- type: grid
cards:
- type: conditional
conditions:
- entity: media_player.apple_tv_salon
state_not: idle
- entity: media_player.plex_plex_for_apple_tv_salon
state: idle
card: &ref_0
type: 'custom:mini-media-player'
volume_stateless: false
toggle_power: true
sound_mode: icon
hide:
volume: true
power: true
info: false
source: true
icon: true
icon_state: true
next: true
prev: true
group: true
artwork: full-cover
entity: media_player.apple_tv_salon
- type: conditional
conditions:
- entity: media_player.apple_tv_salon
state_not: idle
- entity: media_player.plex_plex_for_apple_tv_salon
state: idle
card: *ref_0
- type: conditional
conditions:
- entity: media_player.apple_tv_salon
state: playing
card:
type: 'custom:mini-media-player'
hide:
name: true
icon: true
info: true
power: true
source: true
controls: false
next: true
prev: true
play_pause: true
icon_state: true
group: true
entity: media_player.beam
columns: 1
square: false
- type: grid
cards:
- type: picture
image: /local/images/activities/netflix500.png
tap_action:
action: call-service
service: script.lounge_appletv_netflix
service_data: {}
target: {}
hold_action:
action: call-service
service: script.lounge_appletv_netflix
service_data: {}
target: {}
- type: picture
image: /local/images/activities/disney500.png
tap_action:
action: call-service
service: script.lounge_appletv_disney
service_data: {}
target: {}
hold_action:
action: call-service
service: script.lounge_appletv_disney
service_data: {}
target: {}
- type: picture
image: /local/images/activities/plex500.png
tap_action:
action: call-service
service: script.lounge_appletv_plex
service_data: {}
target: {}
hold_action:
action: call-service
service: script.lounge_appletv_plex
service_data: {}
target: {}
- type: picture
image: /local/images/activities/amazon500.png
tap_action:
action: call-service
service: script.lounge_appletv_amazon_prime
service_data: {}
target: {}
hold_action:
action: call-service
service: script.lounge_appletv_amazon_prime
service_data: {}
target: {}
columns: 4
square: false
- type: grid
cards:
- type: button
tap_action:
action: toggle
entity: switch.wake_on_lan
icon: 'mdi:television'
show_name: false
icon_height: 50px
- type: button
tap_action:
action: toggle
entity: script.remote_arrow_up
icon: 'mdi:arrow-up'
show_name: false
icon_height: 50px
- type: button
tap_action:
action: call-service
service: scene.turn_on
service_data:
entity_id: scene.salon_relax
entity: scene.salon_relax
show_name: false
show_state: false
icon_height: 50px
- type: button
tap_action:
action: toggle
entity: script.remote_arrow_left
icon: 'mdi:arrow-left'
show_name: false
icon_height: 50px
- type: button
tap_action:
action: toggle
entity: script.remote_select
name: OK
show_icon: true
icon: 'mdi:square-rounded'
show_name: false
icon_height: 50px
- type: button
tap_action:
action: toggle
entity: script.remote_arrow_right
icon: 'mdi:arrow-right'
show_name: false
icon_height: 50px
- type: button
tap_action:
action: toggle
entity: script.remote_menu
icon: 'mdi:menu'
show_name: false
icon_height: 50px
- type: button
tap_action:
action: toggle
entity: script.remote_arrow_down
show_name: false
icon: 'mdi:arrow-down'
icon_height: 50px
- type: button
tap_action:
action: toggle
entity: script.remote_home
name: Home
icon: 'mdi:home'
show_name: false
hold_action:
action: toggle
icon_height: 50px
- type: entities
entities:
- input_select.media
columns: 1
square: false
Ma configuration
[center]System Health
version: core-2021.11.5
installation_type: Home Assistant OS
dev: false
hassio: true
docker: true
user: root
virtualenv: false
python_version: 3.9.7
os_name: Linux
os_version: 5.10.17-v8
arch: aarch64
timezone: Europe/Brussels
GitHub API: ok
Github API Calls Remaining: 4677
Installed Version: 1.17.2
Stage: running
Available Repositories: 916
Installed Repositories: 53
logged_in: false
can_reach_cert_server: ok
can_reach_cloud_auth: ok
can_reach_cloud: ok
host_os: Home Assistant OS 6.6
update_channel: stable
supervisor_version: supervisor-2021.10.8
docker_version: 20.10.8
disk_total: 219.4 GB
disk_used: 4.7 GB
healthy: true
supported: true
board: rpi4-64
supervisor_api: ok
version_api: ok
installed_addons: Samba share (9.5.1), File editor (5.3.3), Duck DNS (1.14.0), Zigbee2mqtt (1.22.0-2), Mosquitto broker (6.0.1)
dashboards: 3
resources: 38
views: 8
mode: storage[/center]