A Home Assistant add-on that provides Selenium Standalone with Chromium as a shared service for other add-ons and integrations.
This add-on runs Selenium Standalone with Chromium in a Docker container, making it available to other Home Assistant add-ons and integrations that need browser automation capabilities. It's optimized for low resource usage, making it suitable for mini PCs and other resource-constrained environments.
- UK Bin Collection Data add-on integration
- Web scraping integrations
- Browser automation tasks
- Testing web interfaces
- Navigate to Settings → Add-ons → Add-on Store in your Home Assistant interface
- Click the ⋮ menu (three dots) in the top right corner
- Select Repositories
- Add this repository URL:
https://github.com/davida72/selenium-homeassistant - Click Add
- Find "Selenium Standalone" in the add-on store
- Click on it and press Install
- Wait for the installation to complete
- After installation, go to the Info tab
- Click Start
- Enable Start on boot if you want it to start automatically
- Enable Watchdog to automatically restart if it crashes
After starting the add-on, check the Log tab to see your Selenium URL prominently displayed:
=====================================================
SELENIUM URL: http://localhost:4444/
or: http://YOUR_HOME_ASSISTANT_IP:4444/
=====================================================
Use: http://localhost:4444/
This works for UK Bin Collection Data, AppDaemon, and any other Home Assistant add-on.
Use your Home Assistant IP address (e.g., http://YOUR_HOME_ASSISTANT_IP:4444/)
When configuring the UK Bin Collection Data add-on:
- Selenium URL:
http://localhost:4444/
Want to see what Selenium is doing? Open this URL in your web browser to watch the automated browser in real-time:
- From Home Assistant:
http://localhost:7900/ - From your network: Use your Home Assistant IP (e.g.,
http://YOUR_HOME_ASSISTANT_IP:7900/)
This is useful for debugging scripts and watching automation run.
By default, no password is required - just open the URL and you'll see the browser immediately.
The add-on provides several configurable options to optimize performance for your hardware:
Default: OFF - No password required to view browser sessions
Default: 2 - Maximum concurrent browser sessions (range: 1-10)
Recommendations:
- High-end x86 (8GB+ RAM): 3-5 sessions
- Standard x86 (4GB RAM): 2-3 sessions
- Raspberry Pi 4/5 (4GB+): 2 sessions (default)
- Raspberry Pi 4 (2GB): 1 session
Default: 300 seconds - Auto-close idle sessions (range: 60-3600s)
Default: 384 MB - Maximum Java heap size (range: 128-2048 MB)
Recommendations:
- High-end x86 (8GB+ RAM): 512-768 MB
- Standard hardware: 384 MB (default)
- Raspberry Pi 4 (2GB): 256 MB
To configure: Go to Configuration tab, adjust values, save, then restart the add-on.
This add-on is optimized for low resource usage and configurable for different hardware:
- Idle: ~100-200MB (server running, no sessions)
- Active (1-2 sessions): ~300-500MB (typical usage with default settings)
- Max (multiple sessions): Scales with number of sessions and java_max_memory setting
- Docker Image: ~1.2GB (x86), ~1.5-2GB (ARM/Raspberry Pi)
- Runtime Data: Minimal (~10-50MB for logs and temporary files)
- Total: ~1.3GB (x86) or ~1.7GB (ARM) disk space required
- Max Sessions: 2 (configurable 1-10)
- Session Timeout: 300 seconds / 5 minutes (configurable 60-3600s)
- Java Max Memory: 384MB (configurable 128-2048 MB)
- Log Level: WARNING (reduced logging overhead)
All settings except log level are configurable via the Configuration tab to optimize for your specific hardware.
- Base Image: selenium/standalone-chromium:latest
- Port: 4444 (WebDriver API)
- Architecture Support:
- amd64 (Intel/AMD x86-64)
- aarch64 (Raspberry Pi 4/5, ARM 64-bit)
- Startup: Automatically starts with Home Assistant services
Compatible with Raspberry Pi models that support Home Assistant:
Supported Models:
- Raspberry Pi 5 (recommended)
- Raspberry Pi 4
System Requirements:
- Minimum: Raspberry Pi 4 with 2GB RAM
- Recommended: Raspberry Pi 4/5 with 4GB+ RAM for optimal performance
- Disk Space: ~1.5-2GB for ARM images
- SD Card: Class 10 or better (A2-rated recommended)
Performance:
- Fully functional for typical automation tasks
- Slower than x86 hardware but handles web scraping and automation well
- Pi 4 with 4GB+ RAM handles default settings perfectly
- Pi 4 with 2GB RAM: reduce to 1 session, 256MB Java memory
If you encounter any issues:
- Check the add-on logs in the Log tab
- Ensure port 4444 is not being used by another service
- Verify your system has sufficient resources (at least 512MB free RAM)
- Open an issue on GitHub
- Based on Selenium by the Selenium Project
- Docker images by SeleniumHQ
MIT License - See LICENSE file for details