Contributions are welcomed! Please report bugs, suggest improvements, and open pull requests. For major improvements, please open an issue first to discuss what you would like to change.
Here's the rough order of things that I recommend when adding support for a new device:
- Implement the sensor (if needed)
- Implement unit tests for the sensor
- Implement the device
- Implement unit tests for the device
- Modify
EcowittPlatform.ts
to add the device - Implement synthetic tests for the device (must have sample data)
- Update
config.schema.json
for additional config properties (if needed) - Update the
README.md
to add the device - Open a PR targeting the
dev
branch
Before opening a PR, please ensure that all tests and linting succeeds, and that the code builds:
-
npm run test
-
npm run lint
-
npm run build
- TypeScript Documentation
- Homebridge Developer Docs
- Homekit Developer Docs
- Local Homebridge Environment Setup
- Ecowitt Devices Battery Info
ℹ️ Please let me know if there's anything else I can provide to help get your started!