Bonjour,
Quelqu’un aurait-il réussi à contrôler la Freebox Pop Player avec une intégration ?
Merci.
Salut, avec ce genre de carte : https://www.home-assistant.io/integrations/androidtv_remote/
type: vertical-stack
cards:
- type: entities
entities:
- entity: media_player.freebox_player_pop
- square: true
columns: 3
type: grid
cards:
- type: button
show_icon: false
tap_action:
action: none
hold_action:
action: none
- type: button
icon: mdi:arrow-up-bold
tap_action:
action: perform-action
perform_action: remote.send_command
data:
command: DPAD_UP
target:
entity_id: media_player.freebox_player_pop
hold_action:
action: none
- type: button
show_icon: false
tap_action:
action: none
hold_action:
action: none
- type: button
icon: mdi:arrow-left-bold
tap_action:
action: perform-action
perform_action: remote.send_command
data:
command: DPAD_LEFT
target:
entity_id: media_player.freebox_player_pop
hold_action:
action: none
- type: button
icon: mdi:circle
tap_action:
action: perform-action
perform_action: remote.send_command
data:
command: DPAD_CENTER
target:
entity_id: media_player.freebox_player_pop
hold_action:
action: perform-action
perform_action: remote.send_command
data:
command: DPAD_CENTER
hold_secs: 0.5
target:
entity_id: media_player.freebox_player_pop
- type: button
icon: mdi:arrow-right-bold
tap_action:
action: perform-action
perform_action: remote.send_command
data:
command: DPAD_RIGHT
target:
entity_id: media_player.freebox_player_pop
hold_action:
action: none
- type: button
icon: mdi:arrow-left
tap_action:
action: perform-action
perform_action: remote.send_command
data:
command: BACK
target:
entity_id: media_player.freebox_player_pop
hold_action:
action: perform-action
perform_action: remote.send_command
data:
command: BACK
hold_secs: 0.5
target:
entity_id: media_player.freebox_player_pop
- type: button
icon: mdi:arrow-down-bold
tap_action:
action: perform-action
perform_action: remote.send_command
data:
command: DPAD_DOWN
target:
entity_id: media_player.freebox_player_pop
hold_action:
action: none
- type: button
icon: mdi:home-outline
tap_action:
action: perform-action
perform_action: remote.send_command
data:
command: HOME
target:
entity_id: media_player.freebox_player_pop
hold_action:
action: perform-action
perform_action: remote.send_command
data:
command: HOME
hold_secs: 0.5
target:
entity_id: media_player.freebox_player_pop
- square: false
columns: 3
type: grid
cards:
- type: button
icon: mdi:skip-previous
tap_action:
action: perform-action
perform_action: remote.send_command
data:
command: MEDIA_PREVIOUS
target:
entity_id: media_player.freebox_player_pop
hold_action:
action: perform-action
perform_action: remote.send_command
data:
command: MEDIA_REWIND
target:
entity_id: media_player.freebox_player_pop
- type: button
icon: mdi:play-pause
tap_action:
action: perform-action
perform_action: remote.send_command
data:
command: MEDIA_PLAY_PAUSE
target:
entity_id: media_player.freebox_player_pop
hold_action:
action: perform-action
perform_action: remote.send_command
data:
command: MEDIA_STOP
target:
entity_id: media_player.freebox_player_pop
- type: button
icon: mdi:skip-next
tap_action:
action: perform-action
perform_action: remote.send_command
data:
command: MEDIA_NEXT
target:
entity_id: media_player.freebox_player_pop
hold_action:
action: perform-action
perform_action: remote.send_command
data:
command: MEDIA_FAST_FORWARD
target:
entity_id: media_player.freebox_player_pop
- type: button
icon: mdi:volume-off
tap_action:
action: perform-action
perform_action: remote.send_command
data:
command: MUTE
target:
entity_id: media_player.freebox_player_pop
hold_action:
action: none
- type: button
icon: mdi:volume-medium
tap_action:
action: perform-action
perform_action: remote.send_command
data:
command: VOLUME_DOWN
target:
entity_id: media_player.freebox_player_pop
hold_action:
action: none
- type: button
icon: mdi:volume-high
tap_action:
action: perform-action
perform_action: remote.send_command
data:
command: VOLUME_UP
target:
entity_id: media_player.freebox_player_pop
hold_action:
action: none
- square: false
columns: null
type: grid
cards:
- type: custom:button-card
styles:
icon:
- color: red
- height: 55px
icon: mdi:youtube
tap_action:
action: perform-action
perform_action: remote.turn_on
data:
activity: https://www.youtube.com
target:
entity_id: media_player.freebox_player_pop
hold_action:
action: none
- type: custom:button-card
styles:
icon:
- color: red
- height: 55px
icon: mdi:netflix
show_name: false
tap_action:
action: perform-action
perform_action: remote.turn_on
data:
activity: com.netflix.ninja
target:
entity_id: media_player.freebox_player_pop
hold_action:
action: none
- type: picture
image: https://oqee.tv/img/oqee-by-free1.svg
tap_action:
action: perform-action
perform_action: remote.turn_on
data:
activity: net.oqee.androidtv
target:
entity_id: media_player.freebox_player_pop
hold_action:
action: none
- type: entity
entity: media_player.freebox_player_pop
attribute: current_activity
- type: media-control
entity: media_player.freebox_player_pop
grid_options:
columns: 9
rows: auto
Le player POP étant sous Android TV, il faut regarder de ce côté là
type: custom:android-tv-card
rows:
- - back
- power
- home
- - volume_down
- dpad
- volume_up
- - kodi
- dsvideo
- primevideo
- netflix
- - tf1
- play_pause
- oqee
custom_actions:
- type: button
name: dsvideo
tap_action:
action: source
source: com.synology.dsvideo
icon: phu:friends-of-hue
styles: |-
:host {
--icon-color: red;
}
label: "DsVideo "
- type: button
name: tf1
tap_action:
action: source
source: fr.tf1.mytf1.free
icon: phu:tf1
styles: |-
:host {
--icon-color: #3275a8;
}
- type: button
name: primevideo
tap_action:
action: source
source: https://app.primevideo.com
icon: primevideo
styles: |-
:host {
--icon-color: rgb(0, 165, 222);
}
- type: button
name: oqee
tap_action:
action: source
source: net.oqee.androidtv
icon: phu:oqee
styles: |-
:host {
--icon-color: red;
}
- type: button
name: netflix
tap_action:
action: source
source: netflix://
icon: mdi:netflix
styles: |-
:host {
--icon-color: rgb(229, 9, 20);
}
- type: button
name: center
tap_action:
action: key
key: DPAD_CENTER
icon: ok
styles: |-
:host {
--size: 36px;
top: -30%;
left: -30%;
width: 160%;
height: 160%;
border: 1px solid rgba(0,0,0,0.5);
border-radius: 50%;
transform: rotate(0deg);
background: radial-gradient(circle at top left,#303030 15%,#101010 100%);
z-index: 2;
}
.icon {
color:rgba(128,128,128,0.8);
}
- type: button
name: up
tap_action:
action: key
key: DPAD_UP
hold_action:
action: repeat
icon: mdi:chevron-up
styles: |-
.icon {
transform:rotate(-45deg);
color: rgba(96,96,96,0.8);
}
button {
border-radius: 0;
}
- type: button
name: down
tap_action:
action: key
key: DPAD_DOWN
hold_action:
action: repeat
icon: mdi:chevron-down
styles: |-
.icon {
transform:rotate(-45deg);
color: rgba(96,96,96,0.8);
}
button {
border-radius: 0;
}
- type: button
name: left
tap_action:
action: key
key: DPAD_LEFT
hold_action:
action: repeat
icon: mdi:chevron-left
styles: |-
.icon {
transform:rotate(-45deg);
color: rgba(96,96,96,0.8);
}
button {
border-radius: 0;
}
- type: button
name: right
tap_action:
action: key
key: DPAD_RIGHT
hold_action:
action: repeat
icon: mdi:chevron-right
styles: |-
.icon {
transform:rotate(-45deg);
color: rgba(96,96,96,0.8);
}
button {
border-radius: 0;
}
- type: slider
name: slider
range:
- 0
- 0.6
step: 0.01
value_attribute: volume_level
tap_action:
action: perform-action
perform_action: media_player.volume_set
data:
volume_level: "{{ value | float }}"
styles: |-
:host {
height: 24px;
border-radius: 4px;
--background-height: 12px;
--color: darkblue;
--background: blue;
--thumb-border-radius: 0;
}
.icon {
display: none;
}
.label {
{% if not states(config.entity, 'on') %}
display: none;
{% endif %}
transform: var(--icon-transform);
font-size: 14px;
font-weight: 1000;
color: var(--primary-text-color);
}
.tooltip {
display: none;
}
label: "{{ (value * 100 ) | int }}%"
entity_id: media_player.tv_salon
styles: |-
.button-pad {
gap: 14px;
border: 1px solid #444;
border-radius: 50%;
overflow: hidden;
background: radial-gradient(circle at top left,#202020 15%,#303030 100%);
}
.button-pad .empty-button {
width: 0;
height: 0;
}
.button-pad remote-button {
top: -40%;
left: -40%;
width: 180%;
height: 180%;
transform: rotate(45deg);
overflow: hidden;
border-radius: 0;
}
custom_icons:
- name: ok
path: >-
M7 7A2 2 0 005 9V15A2 2 0 007 17H9A2 2 0 0011 15V9A2 2 0 009 7H7M7
9H9V15H7V9ZM13 7V17H15V13.7L17 17H19L16 12 19 7H17L15 10.3V7H13Z
remote_id: remote.pop
Merci pour ces présentation de carte fort bien jolie.
Vous me parler de l’integration TvAndroid_remote, mais c’est l’integration automatique pour androidTV. Il se trouve que je l’avais d’integé.
Pour etre plus précis, mon but est d’allumer la télé via home assistant, et l’intégration androidTV n’arrive pas à allumer la boxTV.
c’est faisable ?
merci
Bonjour,
si tu as l’option HDMI - CEC sur ta TV, tu peux l’activer et allumer ta freebox pop player qui devrait allumer la TV.
De mon coté l’option sur androidTV pour allumé la TV est complètement buggé. Je suis passer par un Broadlink RM4 Mini, pour enregistrer le bouton on de ma télécommande et peut l’allumer sans problème maintenant.
J’ai fabriqué mon propre ir remote, mais il ne fait pas rf
C’est quoi le protocole de la télécommande ?
Si je comprends bien, tu envois le signal de la télécommande via ton Broadlink RM4 Mini sur la box ?
En général pour une TV ou box TV, les télécommandes sont en IR. Ton IR remote est bon pour faire ça.
Oui, sur la TV. J’ai pas de box TV.