A custom Lovelace card for controlling Lionel LionChief trains in Home Assistant.
- Large throttle slider with color gradient (green → yellow → red)
- Direction controls (Forward/Reverse)
- Quick access buttons for Horn, Bell, Lights
- Emergency Stop button
- Connection status indicator
- Disconnect button
This card requires the Lionel Train Controller integration to be installed.
- Open HACS in Home Assistant
- Go to "Frontend"
- Click the three dots menu and select "Custom repositories"
- Add
https://github.com/BlackandBlue1908/lionel-train-cardas a "Lovelace" - Install "Lionel Train Card"
- Refresh your browser (Ctrl+F5)
- Download
lionel-train-card.jsfrom the latest release - Copy it to
/config/www/lionel-train-card.js - Add the resource in Home Assistant:
- Go to Settings → Dashboards → Resources
- Click Add Resource
- URL:
/local/lionel-train-card.js - Resource type: JavaScript Module
- Refresh your browser
Add the card to your dashboard:
type: custom:lionel-train-card
entity: number.lc_xxxx_throttle
name: My Lionel Train| Option | Type | Required | Description |
|---|---|---|---|
entity |
string | Yes | The throttle entity ID (e.g., number.lc_1234_throttle) |
name |
string | No | Display name for the card (default: "Lionel Train") |
- Go to Developer Tools → States
- Search for your train's throttle entity (it ends with
_throttle) - Use that entity ID in the card configuration
| Control | Description |
|---|---|
| Throttle | Slide to control train speed (0-100%) |
| Forward | Set train direction to forward |
| Reverse | Set train direction to reverse |
| Lights | Toggle train lights on/off |
| Horn | Sound the horn |
| Bell | Ring the bell |
| Disconnect | Disconnect from the train |
| Emergency Stop | Immediately stop the train |
Coming soon
If you encounter issues, please open an issue on GitHub.
MIT License - see LICENSE for details.
