Code Snippet – Hue Play Sync Status

Date Created:

Date Modified:

Description:

For those using Philips Hue Play Sync Box, you can integrate it with Home Assistant. Because Home Assistant treats the sync box like a media play, your able to start/stop the light syncing and grab status information. I have a dashboard the shows a summary of status information for all the hardware in my media cabinet. This card uses the custom:button-card to display the status of the Play Sync box.

Note: This snippet makes use of the button-card template feature. The template I used for this can be found here:

type: custom:button-card
template: large_status
icon: hue:sync-box
name: |
  [[[
    var status = ""
    if (states['media_player.theater_sync_box'].state == "idle" )
      var status = "On - Sync Idle ";
    else if (states['media_player.theater_sync_box'].state == "playing")
      status = "On - Sync Active ";
    else
      return "Off"
    status = status + "- " + entity.attributes.source
    return status;
  ]]]
entity: media_player.theater_sync_box
variables:
  label_var: Hue Play Sync

Leave a Reply