A Home Assistant custom integration for EZVIZ Smart Plugs that allows you to control your EZVIZ smart plugs directly from Home Assistant.
Note: This is an updated and improved version of the original project started by @khal3d. This fork includes bug fixes, compatibility updates, and support for the latest Home Assistant versions (tested on 2025.7.x).
- Control EZVIZ smart plugs (turn on/off)
- Real-time status monitoring
- Device availability tracking
- Easy configuration through UI
- Support for multiple regions (EU, Russia)
- Automatic device discovery
- CS-T30-10A-EU
- CS-T30-10B-EU
- Any EZVIZ smart plug with device serial starting with "Q" (untested)
- Make sure you have HACS installed in your Home Assistant
- In HACS, go to "Integrations"
- Click the three dots in the top right corner and select "Custom repositories"
- Add this repository URL:
https://github.com/maciejwaloszczyk/homeassistant-ezviz-smart-plug
- Select "Integration" as the category
- Click "Add"
- Search for "EZVIZ Smart Plug" in HACS
- Click "Download"
- Restart Home Assistant
- Download the latest release from the releases page
- Extract the zip file
- Copy the
custom_components/ezviz_plug
folder to your Home Assistantcustom_components
directory - Restart Home Assistant
- Go to Settings → Devices & Services
- Click Add Integration
- Search for EZVIZ Smart Plug
- Enter your EZVIZ account credentials:
- Email: Your EZVIZ account email
- Password: Your EZVIZ account password
- Region: Select your region (EU or Russia)
- Click Submit
The integration will automatically discover all compatible smart plugs associated with your EZVIZ account.
# configuration.yaml
switch:
- platform: ezviz_plug
email: your_email@example.com
password: your_password
Once configured, your EZVIZ smart plugs will appear as switch entities in Home Assistant. You can:
- Turn plugs on/off from the UI
- Use them in automations
- Monitor their status
- Check device availability
Each plug entity provides the following attributes:
last_run_success
: Boolean indicating if the last command was successfullast_pressed
: Timestamp of the last state change
The integration supports standard Home Assistant switch services:
switch.turn_on
switch.turn_off
switch.toggle
-
Authentication Failed
- Verify your EZVIZ account credentials
- Make sure your account doesn't have MFA enabled
- Check if you selected the correct region
-
No Devices Found
- Ensure your smart plugs are properly set up in the EZVIZ app
- Verify the devices are online and connected to your account
- Check if device serial numbers start with "Q"
-
Connection Issues
- Check your internet connection
- Verify EZVIZ cloud services are accessible
- Try restarting the integration
To enable debug logging, add this to your configuration.yaml
:
logger:
default: warning
logs:
custom_components.ezviz_plug: debug
pyezviz: debug
- Home Assistant 2021.12.0 or newer (tested on 2025.7.4)
- EZVIZ account with registered smart plugs
- Internet connection for cloud API access
- pyezviz - Python library for EZVIZ API
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
This project is licensed under the GPL 3.0 License - see the LICENSE file for details.
If you find this integration useful, please consider starring the repository!
For issues and feature requests, please use the GitHub Issues page.