custom_vesync/README.md

53 lines
2.4 KiB
Markdown
Raw Normal View History

2022-04-01 15:02:13 +02:00
[![hacs_badge](https://img.shields.io/badge/HACS-Default-orange.svg)](https://github.com/custom-components/hacs)
2023-04-18 12:25:32 +02:00
[![GitHub release](https://img.shields.io/github/v/release/vlebourl/custom_vesync.svg)](https://GitHub.com/vlebourl/custom_vesync/releases/)
2022-04-01 15:02:13 +02:00
# VeSync custom component for Home Assistant
Custom component for Home Assistant to interact with smart devices via the VeSync platform.
2023-04-18 12:19:08 +02:00
This integration is heavily based on [VeSync_bpo](https://github.com/borpin/vesync-bpo) and relies on [pyvesync](https://github.com/webdjoe/pyvesync) under the hood.
2022-04-01 15:02:13 +02:00
## Installation
You can install this integration via [HACS](#hacs) or [manually](#manual).
This integration will override the core VeSync integration.
### HACS
This integration can be installed by adding this repository to HACS __AS A CUSTOM REPOSITORY__, then searching for `Custom VeSync`, and choosing install. Reboot Home Assistant and configure the 'VeSync' integration via the integrations page or press the blue button below.
2022-04-01 15:02:13 +02:00
[![Open your Home Assistant instance and start setting up a new integration.](https://my.home-assistant.io/badges/config_flow_start.svg)](https://my.home-assistant.io/redirect/config_flow_start/?domain=vesync)
### Manual
2022-04-03 12:43:52 +02:00
Copy the `custom_components/vesync` to your `custom_components` folder. Reboot Home Assistant and configure the 'VeSync' integration via the integrations page or press the blue button below.
2022-04-01 15:02:13 +02:00
[![Open your Home Assistant instance and start setting up a new integration.](https://my.home-assistant.io/badges/config_flow_start.svg)](https://my.home-assistant.io/redirect/config_flow_start/?domain=vesync)
2023-04-27 11:28:19 +02:00
You can make sure the custom integration is in use by looking for the following icon in the Settings > Devices & Services page:
![image](https://user-images.githubusercontent.com/5701372/234820776-11a80f79-5b4d-4dbe-8b63-42579e4a5631.png)
## Logging
2022-04-01 15:02:13 +02:00
### Enable debug logging
The [logger](https://www.home-assistant.io/integrations/logger/) integration lets you define the level of logging activities in Home Assistant. Turning on debug mode will show more information about unsupported devices in your logbook.
```yaml
logger:
default: error
logs:
custom_components.vesync: debug
2022-07-20 09:52:08 +02:00
pyvesync: debug
2022-04-01 15:02:13 +02:00
```
2023-04-18 12:18:09 +02:00
### Contributing
All contributions are very welcomed!
Please make sure to install `pre-commit` and run the pre-commit hook before submitting a PR.
```sh
pip install pre-commit
pre-commit install
pre-commit run --all-files
```