@viguza/homebridge-ezviz
v1.5.0
Published
A short description about what your plugin does.
Downloads
71
Readme
Homebridge EZVIZ Plugin
A Homebridge plugin for integrating EZVIZ devices into Apple HomeKit. This plugin provides seamless integration with your EZVIZ devices, allowing you to control them through the Home app and Siri.
Features
- 🏠 HomeKit Integration: Integration with Apple HomeKit ecosystem
- 📹 Camera Support: Live streaming for EZVIZ cameras
- 🔌 Smart Plug Control: Remote control of EZVIZ smart plugs
- 🌍 Multi-Region Support: Support for all EZVIZ regions worldwide
- 🔒 Secure Authentication: Secure login with your EZVIZ credentials
- 🎯 Easy Configuration: Simple setup through Homebridge UI
- 🔄 Auto-Discovery: Automatic device discovery and configuration
Supported Devices
Cameras
- EZVIZ IP Cameras with RTSP support
- Indoor and outdoor security cameras
- PTZ (Pan-Tilt-Zoom) cameras
- Doorbell cameras
Smart Plugs
- EZVIZ Smart Plugs
- Smart switches and outlets
Prerequisites
- Homebridge v1.8.0 or higher
- Node.js v18.20.4, v20.18.0, or v22.10.0
- EZVIZ account with registered devices
- Network access to your EZVIZ devices
Installation
Method 1: Homebridge UI (Recommended)
- Open Homebridge UI
- Go to the "Plugins" tab
- Search for "EZVIZ"
- Click "Install" on the
@viguza/homebridge-ezvizplugin
Method 2: Command Line
npm install -g @viguza/homebridge-ezvizDevice Setup
Before using the plugin, you need to configure your EZVIZ devices:
1. Enable Video & Picture Encryption
- Open the EZVIZ app
- Go to your device settings
- Navigate to Privacy settings
- Enable "Video & Picture Encryption"
2. Enable RTSP (For Cameras)
RTSP (Real Time Streaming Protocol) is required for camera live streaming:
- Open the EZVIZ app
- Go to Settings
- Select "LAN Live View"
- Start scanning and select your device from the list
- Once connected, tap the settings icon in the top right corner
- Select "Local Service settings"
- Enable RTSP
Note: These settings are required for the plugin to access your device's livestream. Without them, you won't be able to view the camera feed in HomeKit.
Configuration
Basic Configuration
Add the following to your Homebridge config.json file:
{
"platforms": [
{
"platform": "EZVIZ",
"name": "EZVIZ",
"region": 314,
"email": "[email protected]",
"password": "your-password",
"cameras": [
{
"serial": "C1A1234567890",
"username": "admin",
"code": "ABCD1234"
}
],
"plugs": [
{
"serial": "P1A1234567890",
"code": "ABCD1234"
}
]
}
]
}Configuration Options
| Option | Type | Required | Description |
|--------|------|----------|-------------|
| platform | string | Yes | Must be "EZVIZ" |
| name | string | No | Platform name (default: "EZVIZ") |
| region | number | Yes | Your EZVIZ region code (see region list below) |
| email | string | Yes | Your EZVIZ account email |
| password | string | Yes | Your EZVIZ account password |
| cameras | array | No | Array of camera configurations |
| plugs | array | No | Array of smart plug configurations |
Camera Configuration
| Option | Type | Required | Description |
|--------|------|----------|-------------|
| serial | string | Yes | Camera serial number |
| username | string | Yes | Camera username (usually "admin") |
| code | string | Yes | Camera verification code |
Smart Plug Configuration
| Option | Type | Required | Description |
|--------|------|----------|-------------|
| serial | string | Yes | Smart plug serial number |
| code | string | Yes | Smart plug verification code |
Region Codes
The EZVIZ API uses numeric region codes (also called areaId) to determine which regional API endpoint to use.
For a complete list of all supported region codes, see config.schema.json in the plugin repository. The schema includes all available regions and their corresponding codes.
Note: You can also check the plugin configuration in Homebridge UI, which will show the available region codes.
Usage
In HomeKit
- Open the Home app on your iOS device
- Your EZVIZ devices will appear as accessories
- Tap on cameras to view live streams
- Use smart plugs to control connected devices
- Set up automations and scenes as needed
Voice Control
- "Hey Siri, turn on the living room camera"
- "Hey Siri, turn off the bedroom plug"
- "Hey Siri, show me the front door camera"
Troubleshooting
Common Issues
Camera Not Showing Video
- Ensure RTSP is enabled on your camera
- Check that Video & Picture Encryption is enabled
- Verify camera credentials are correct
- Check network connectivity
Smart Plug Not Responding
- Verify the verification code is correct
- Check that the plug is online in the EZVIZ app
- Ensure the plug is connected to your network
Authentication Errors
- Double-check your email and password
- Verify your region code is correct
- Try logging into the EZVIZ app to confirm credentials
Debug Mode
Enable debug mode for detailed logging:
- Open Homebridge UI
- Go to the plugin settings
- Enable "Debug" mode
- Check the logs for detailed information
Getting Help
- Check the Issues page
- Search for existing solutions
- Create a new issue with:
- Device information
- Configuration (without credentials)
- Error logs
- Steps to reproduce
API Documentation
For developers who want to understand or work with the EZVIZ API directly, we provide detailed API documentation using curl commands that can be easily imported into Postman or similar tools.
The documentation includes:
- Step-by-step authentication process
- How to retrieve device information
- Regional API domains and endpoints
- Common error codes and troubleshooting
- Complete curl examples
Development
Building from Source
git clone https://github.com/viguza/homebridge-ezviz.git
cd homebridge-ezviz
npm install
npm run buildRunning Tests
npm testContributing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
Changelog
See CHANGELOG.md for version history and updates.
Disclaimer
⚠️ Important Warnings:
- There is no official documentation for the EZVIZ API, so the endpoints used are based on other similar projects. If EZVIZ changes something, this plugin might break.
- This plugin is tested with a limited number of devices. It may not cover every single EZVIZ device.
- Use this plugin at your own risk.
- This plugin is not officially affiliated with EZVIZ.
Credits
This project is based on the original work by Brandawg93. The idea for this project is to improve and expand upon the original plugin, especially now that it is archived.
License
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
Support
If you find this plugin helpful, please consider:
- ⭐ Starring the repository
- 🐛 Reporting bugs and issues
- 💡 Suggesting new features
- 💰 Supporting the project
Made with ❤️ for the Homebridge community
