Custom Integration - Control christmas lights show in HA (FPP and xLights)

If you have a Christmas show and you would like to be able to manage it from Home Assistant, then I have two integrations for you that allow you to do this without much difficulty.

The first integration for Falcon Pi Player (FPP): GitHub - Aleks130699/ha-fpp: Integrates a Falcon Pi Player (FPP) as a Media Player in HomeAssistant
And the second integration for xLights Schedule: GitHub - Aleks130699/ha-xlights: Integrates a Light sequencer and Show scheduler (xLights) as a Media Player in HomeAssistant

These integrations have similar capabilities only the software that you use differs/

These integrations create a media player with the following functionality:

Features:

  • View current playing sequence and playlist
  • List all available playlist and sequences as sources
  • Start a playlist or sequence
  • Stop a playlist or sequence
  • Set or step the player volume
  • Next a sequence
  • Prev a sequence
  • Pause a sequence
  • Resume a sequence
  • Seek a sequence
1 Like

Thanks for this integration!

Would there be any way to add the currently playing file? I’d like to trigger automations based on where I’m at within a playlist, so giving HA access to which file is playing would be great!

This integration already allows you to get information about the file being played, its total length and the current playback position, all this data is in the player’s atrebuts, you can view them through the developer panel

For some reason I am not finding your integration in HACS? Could I be searching for the wrong thing?

Add GitHub - Aleks130699/ha-fpp: Integrates a Falcon Pi Player (FPP) as a Media Player in HomeAssistant to HACS as a custom repository.

After adding it, and trying to reboot, it won’t reboot and I get the message :


Platform error media_player.falcon_pi_player - Requirements for falcon_pi_player not found: ['requests==2.25.1'].

Any ideas ?

Has anyone tried this lately? I checked and the requirements issue seems fixed, and the fpp/falcon_pi_player domain issue seems fixed, but for whatever reason I can’t get anything to load after adding the lines to my yaml. I don’t even get an error, HA just ignores it.

Yes, I’ve installed this today and it only works if I control the media player with services calls. I don’t see the Media Player if I add a Media Player Card for example.

1 Like

So, new(er) to Home Assistant. Love that this has an integration for FPP for us light show nerds. What I’m needing though, is to be able to use my Player FPP as a condition for some automations. Example condition is “IF FPP is stopped” to allow an automation to run. I have an automation that if the front door opens at night, the entry way light turns on. I’m looking to have it monitor for FPP to not be playing to execute this automation. Basically, if my show is playing, keep the lights off. Any ideas?

Can someone clarify how to get it to play?

I’m using a integration from HACS that sets it up as a media player. So then it’s just.

alias: LightShow Ends Turn Lights On
description: ""
trigger:
  - platform: state
    entity_id:
      - media_player.fpp_master
    to: idle
condition: []
action:
  - service: light.turn_on
    data: {}
    target:
      entity_id:
        - light.wiz_rgbw_tunable_ecbc74
        - light.wiz_rgbw_tunable_ee0ba0
        - light.wiz_rgbw_tunable_eb9102
        - light.security_lights
mode: single

If you are close to the Florida Mega Mini or California mini this year i’m teaching a HA / FPP class.

If you are close to the Florida Mega Mini or California mini this year i’m teaching a HA / FPP class.

I publishing in hacs a long time ago, but for some reason it is still not being added, since I do it for the first time, I can’t figure out what the reason is.

I’ve followed the instructions but can’t get a media player card to work with this on my dashboard. The entity and the card both show a status of “unavailable”. Is there a certain plugin that needs to be installed on my FPP for this integration to talk to it?

@johnsonej23 No, you don’t need to install anything on the fpp. Please check this link on your fpp http://“ip”:“port”/api/fppd/status , you should see a lot of information about fpp

Thanks for the response. I could successfully connect to this page, but it did require my un/pw first. Is that part of my issue?

Here is what the page shows, in case it gives you any clues as to why it shows unavailable in HA…

{
“MQTT”: {
“configured”: true,
“connected”: true
},
“bridging”: false,
“current_playlist”: {
“count”: “0”,
“description”: “”,
“index”: “0”,
“playlist”: “”,
“type”: “”
},
“current_sequence”: “”,
“current_song”: “”,
“dateStr”: “Wed Jul 10”,
“fppd”: “running”,
“mode”: 2,
“mode_name”: “player”,
“multisync”: false,
“next_playlist”: {
“playlist”: “No playlist scheduled.”,
“start_time”: “”
},
“repeat_mode”: “0”,
“scheduler”: {
“enabled”: 1,
“nextPlaylist”: {
“playlistName”: “No playlist scheduled.”,
“scheduledStartTime”: 0,
“scheduledStartTimeStr”: “”
},
“status”: “idle”
},
“seconds_played”: “0”,
“seconds_remaining”: “0”,
“sensors”: [
{
“formatted”: “66.2”,
“label”: "CPU: ",
“postfix”: “”,
“prefix”: “”,
“value”: 66.218,
“valueType”: “Temperature”
}
],
“status”: 0,
“status_name”: “idle”,
“time”: “Wed Jul 10 06:21:12 MST 2024”,
“timeStr”: “06:21 AM”,
“timeStrFull”: “06:21:12 AM”,
“time_elapsed”: “00:00”,
“time_remaining”: “00:00”,
“uptime”: “13 days, 08:32:33”,
“uptimeDays”: 13.3559375,
“uptimeHours”: 8.5425,
“uptimeMinutes”: 32.55,
“uptimeSeconds”: 33,
“uptimeStr”: “13 days, 8 hours, 32 minutes, 33 seconds”,
“uptimeTotalSeconds”: 1153953,
“uuid”: “M1-10000000cdef276b”,
“volume”: 75,
“warnings”: [
“Could not resolve host name wled-MegaTree.local - disabling output”,
“Could not resolve host name wled-arches.local - disabling output”
]
}

Yes, because of the login and password request, you can’t access from HA, I just released a fix for your error, you can check it out

1 Like

You’re awesome! That fixed my issue!

Is there a way to show a list of all the songs in the playlist to allow jumping to a given song?

At the moment, the plugin pulls up a list of all playlists and a list of all sequences that are not linked to a specific playlist, and you can play them at the audio source selection point. Displaying sequences from a specific playlist and following them to inside the playlist is not implemented. Need to look more specifically at the api and figure out if this is even possible

1 Like