Advertisement
Guest User

PS4 Lovelace

a guest
Mar 7th, 2019
2,268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 3.21 KB | None | 0 0
  1.  
  2.         # When PS4 is on, show PS4 media_player and controls underneath...
  3.         - type: conditional
  4.           conditions:
  5.             - entity: switch.ps4
  6.               state_not: "off"
  7.           card:
  8.             type: vertical-stack
  9.             cards:
  10.               - entity: media_player.playstation_4
  11.                 type: custom:mini-media-player
  12.                 artwork: full-cover
  13.                 hide:
  14.                   source: true
  15.                   volume: true
  16.                   icon: true
  17.                   power: true
  18.                   progress: true
  19. #                   controls: true
  20.  
  21.               - type: horizontal-stack
  22.                 cards:
  23.                   - type: custom:button-card
  24.                     color_type: card
  25.                     action: service
  26.                     service:
  27.                       domain: remote
  28.                       action: send_command
  29.                       data:
  30.                         entity_id: remote.sean_room
  31.                         device: 43258775 #PS4
  32.                         command: 'PS'
  33.                     icon: mdi:playstation
  34.                     color: "#003791"
  35.  
  36.                   - type: custom:button-card
  37.                     color_type: icon
  38.                     action: service
  39.                     service:
  40.                       domain: remote
  41.                       action: send_command
  42.                       data:
  43.                         entity_id: remote.sean_room
  44.                         device: 43258775 #PS4
  45.                         command: 'Cross'
  46.                     icon: mdi:window-close
  47.                     color: "#91b8e3"
  48.                   - type: custom:button-card
  49.                     color_type: icon
  50.                     action: service
  51.                     service:
  52.                       domain: remote
  53.                       action: send_command
  54.                       data:
  55.                         entity_id: remote.sean_room
  56.                         device: 43258775 #PS4
  57.                         command: 'Triangle'
  58.                     icon: mdi:triangle-outline
  59.                     color: "#1fd0c8"
  60.                   - type: custom:button-card
  61.                     color_type: icon
  62.                     action: service
  63.                     service:
  64.                       domain: remote
  65.                       action: send_command
  66.                       data:
  67.                         entity_id: remote.sean_room
  68.                         device: 43258775 #PS4
  69.                         command: 'Square'
  70.                     icon: mdi:square-outline
  71.                     color: "#d4aad2"
  72.                   - type: custom:button-card
  73.                     color_type: icon
  74.                     action: service
  75.                     service:
  76.                       domain: remote
  77.                       action: send_command
  78.                       data:
  79.                         entity_id: remote.sean_room
  80.                         device: 43258775 #PS4
  81.                         command: 'Circle'
  82.                     icon: mdi:circle-outline
  83.                     color: "#f57b8a"
  84.  
  85.  
  86.               - type: entities
  87.                 entities:
  88.                  - sensor.ps4_time_today
  89.                   - sensor.ps4_time_week
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement