A lightweight, modern Home Assistant integration for MyStrom devices (Switch, Zero, Bulb, Button) with full REST API support.
- ✅ Lightweight & Fast: Minimal dependencies, efficient polling
- ✅ Full API Support: All MyStrom Switch and Zero REST API commands
- ✅ Modern Architecture: Uses Home Assistant coordinators and best practices
- ✅ Device Support: MyStrom Switch, Zero, Bulb, and Button
- ✅ Sensors: Power consumption, temperature, and energy monitoring
- ✅ Services: Advanced control via Home Assistant services
- MyStrom Switch
- MyStrom Zero
- MyStrom Bulb
- MyStrom Button
- Open HACS in Home Assistant
- Go to Integrations
- Click the three dots menu and select "Custom repositories"
- Add this repository URL
- Search for "MyStrom LDS50" and install
- Copy the
custom_components/mystrom_lds50folder to your Home Assistantcustom_componentsdirectory - Restart Home Assistant
- Go to Settings → Devices & Services → Add Integration
- Search for "MyStrom LDS50"
- Go to Settings → Devices & Services → Add Integration
- Search for "MyStrom LDS50"
- Enter your device IP address (and optional MAC address)
- The integration will automatically detect your device type
- Main relay control
- Power: Current power consumption (W)
- Temperature: Device temperature (if supported)
- Energy: Total energy consumption (kWh, if supported)
Set the relay state directly.
Service Data:
entity_id: switch.mystrom_device
state: true # or falseToggle the relay state.
Service Data:
entity_id: switch.mystrom_deviceReboot the device.
Service Data:
entity_id: switch.mystrom_deviceThe integration supports all standard MyStrom REST API endpoints:
GET /report- Get device statusGET /relay?state=0|1- Set relay stateGET /toggle- Toggle relayGET /on- Turn onGET /off- Turn offGET /reboot- Reboot device
- Home Assistant 2025.8.0 or later
- Python 3.11+
# Install development dependencies
pip install -r requirements.txt
# Run tests
pytest tests/
# Lint code
ruff check custom_components/mystrom_lds50/MIT License
Contributions are welcome! Please feel free to submit a Pull Request.