Custom Integration for Home Assistant to control any (local/remote) LedFx-server
- Select your LedFx scene from inside Home Assistant!
- Display the number of scenes/devices/pixels connected to LedFx
- Start and stop the LedFx server (custom Endpoint required!)
- Toggle the power for devices configured in LedFx
- Display number of pixels per device
- Display IP per device
- Display current running effect-name
Default | With Devices |
---|---|
- LedFx
- minimum version: v0.9.0 (so atm you need the dev-branch)
- with at least one scene setup
- the ledfx config.yaml file defines your host as 127.0.0.1 by default. The host needs to be changed to 0.0.0.0 in order for this integration to function properly.
- LedFx Docs
- hass - (HomeAssistant)
- HACS - (HomeAssistantCommunityStore)
-
Add Repo to HACS:
- Navigate to HACS in Home Assistant
- Select "Integrations"
- Select the menu hamburger in the upper right of the screen
- Select "Custsom repositories"
- Add the url for this repository and select integration as the cattegory
-
Install integration via HACS:
- The integration should now be visible, select "Install"
- Restart Home Assistant for the changes to take effect
-
Add integration to Home Assistant:
- In the HA UI go to "Configuration" -> "Integrations" click "+" and search for "LedFx Remote"
-
Configuration is done in the UI
- Add the IP of the machine running LedFx to the "Host" field
- Leave the default port of 8888 or change it to match your configuration
- (LedFx Server needs to be online and running)
- no changes are needed in configuration.yaml
- all Settings are handled via UI
- Open the light entity and change your scenes :)
Step by Step Installation - Images-Guide
- Everything configurable via UI :)
- AutoCreate Entities with
GET
Informations from all LedFx-API-Endpoints:- Binary Sensor (Is LedFx online?)
- Devices Sensor (Number of Devices inside LedFx)
- Scenes Sensor (Number of Scenes inside LedFx)
- Pixels Sensor (Number of Pixels inside LedFx)
- Switch (if start/stop is set in config - custom
GET
-call) - Light
- EffectList (Filled with scenes from LedFx)
- Off->On - just toggles a manual sync (double click the switch)
- EffectList-Change will fire LedFx via
PUT
- Scan_intervall in seconds via UI:
- Note: This also defines how long you can interact with it (start server), after a disconnect (kill server)
- Recommendation: set to a high number. Polling is only to get changes made inside LedFx.
- SubDevices: (config via UI)
- Get the Devices running inside LedFx including their states
- ON / OFF Button
- OFF Button saves the current effect running on the current device
- ON Button will use that state if available otherwise sends "Gradient"
- Start/Stop Server:
- Set custom Endpoints for Start and Stop
- Configurable methods:
GET
,DELETE
,PUT
,POST
- Configurable body: json (untested)
- NEW: Add Blade-Light: 1 effect throught multiple devices
- Make also use of the after setup config flow (options)
- Allow editing of setup-settings
- Allow disable poll (If you have everything setup in ledfx, there is no need to poll for new infos all the time)
- Make fallback "gradient" somehow editable for the user