Compare commits

...

4 Commits

Author SHA1 Message Date
Andrey
db52d93ee4 add issue tracker 2020-12-29 11:30:49 +03:00
Andrey
a38de65071 add validate 2020-12-29 11:22:24 +03:00
Andrey
6d1aa47e4f fix manifest 2020-12-29 11:13:34 +03:00
Andrey
cc122cf98b add hassfest 2020-12-29 10:06:22 +03:00
5 changed files with 50 additions and 10 deletions

14
.github/workflows/hassfest.yaml vendored Normal file
View File

@@ -0,0 +1,14 @@
name: Validate with hassfest
on:
push:
pull_request:
schedule:
- cron: "0 0 * * *"
jobs:
validate:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v2"
- uses: home-assistant/actions/hassfest@master

17
.github/workflows/validate.yaml vendored Normal file
View File

@@ -0,0 +1,17 @@
name: Validate
on:
push:
pull_request:
schedule:
- cron: "0 0 * * *"
jobs:
validate:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v2"
- name: HACS validation
uses: "hacs/action@main"
with:
category: "integration"

View File

@@ -2,7 +2,7 @@
"domain": "mega", "domain": "mega",
"name": "mega", "name": "mega",
"config_flow": true, "config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/mega", "documentation": "https://www.home-assistant.io/integrations/mega_hacs",
"requirements": [ "requirements": [
"beautifulsoup4", "beautifulsoup4",
"lxml" "lxml"
@@ -15,5 +15,6 @@
], ],
"codeowners": [ "codeowners": [
"@andvikt" "@andvikt"
] ],
"issue_tracker": "https://github.com/andvikt/mega_hacs/issues"
} }

5
install.sh Normal file
View File

@@ -0,0 +1,5 @@
#!/bin/bash
git clone https://github.com/andvikt/mega_hacs.git
mkdir custom_components
cp mega_hacs/custom_components/mega custom_components/mega
rm -fR mega_hacs

View File

@@ -13,15 +13,18 @@
## Устройства ## Устройства
Поддерживаются устройства: light, switch, binary_sensor, sensor. light может работать как диммер Поддерживаются устройства: light, switch, binary_sensor, sensor. light может работать как диммер
## Установка ## Установка
В папке config/custom_components выполнить: Рекомендованнй способ - через [HACS](https://hacs.xyz/docs/installation/installation).
```shell После установки HACS, нужно перейти в меню hacs -> integrations, далее в верхнем правом углу
git clone https://github.com/andvikt/mega.git нажать три точки, где будет `Custom repositories`, открыть, нажать add и добавить `https://github.com/andvikt/mega_hacs.git`
```
Обновление: Альтернативный способ установки:
```shell ```shell
git pull # из папки с конфигом
``` wget -q -O - https://raw.githubusercontent.com/andvikt/mega_hacs/master/install.sh | bash -
```
Перезагрузить HA Перезагрузить HA
Для обновления повторить
## Зависимости ## Зависимости
Перед использованием необходимо настроить интеграцию mqtt в HomeAssistant Перед использованием необходимо настроить интеграцию mqtt в HomeAssistant