- Go to HACS → Integrations in Home Assistant.
- Click the three dots in the top right → "Custom repositories".
- Enter
https://github.com/Zwer2k/ha-pca301as the repository URL and select "Integration". - Click "Add" and install the integration.
- Restart Home Assistant.
This integration allows you to control and monitor ELV PCA301 smart plugs via a serial interface in Home Assistant.
- Connect the PCA301 USB receiver to your Home Assistant system.
- Add the integration via Settings → Devices & Services → Add Integration and select the correct serial port.
- During setup, you will be prompted to press the button on each PCA301 plug to pair it.
- After the scan, entities for all discovered devices are created automatically.
To add more PCA301 plugs later, use the new Subentry Flow:
- Open the integration in Home Assistant (Settings → Devices & Services).
- Click the three dots at the top right of the PCA301 integration.
- Select "Scan for devices".
- During the scan window, press the button on each new plug you want to add.
- After the scan completes, the new devices will automatically appear as entities.
Note: The classic options dialog is no longer used. Device scanning is now available directly via the subentry button next to the integration title.
- Device scanning is possible at any time via the subentry button.
- Channel mapping is stored persistently.
- For troubleshooting, see the Home Assistant log.
- Switch: On/Off control for each plug
- Sensor: Power (W), Consumption (kWh), Channel (diagnostic)
- Only PCA301 devices are supported
- Serial port must be accessible to Home Assistant
For more information, see the code comments or the documentation in this repository.