mirror of
https://github.com/andvikt/mega_hacs.git
synced 2025-12-12 01:24:29 +05:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
db52d93ee4 | ||
|
|
a38de65071 | ||
|
|
6d1aa47e4f | ||
|
|
cc122cf98b |
14
.github/workflows/hassfest.yaml
vendored
Normal file
14
.github/workflows/hassfest.yaml
vendored
Normal 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
17
.github/workflows/validate.yaml
vendored
Normal 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"
|
||||
@@ -2,7 +2,7 @@
|
||||
"domain": "mega",
|
||||
"name": "mega",
|
||||
"config_flow": true,
|
||||
"documentation": "https://www.home-assistant.io/integrations/mega",
|
||||
"documentation": "https://www.home-assistant.io/integrations/mega_hacs",
|
||||
"requirements": [
|
||||
"beautifulsoup4",
|
||||
"lxml"
|
||||
@@ -15,5 +15,6 @@
|
||||
],
|
||||
"codeowners": [
|
||||
"@andvikt"
|
||||
]
|
||||
],
|
||||
"issue_tracker": "https://github.com/andvikt/mega_hacs/issues"
|
||||
}
|
||||
5
install.sh
Normal file
5
install.sh
Normal 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
|
||||
19
readme.md
19
readme.md
@@ -13,15 +13,18 @@
|
||||
## Устройства
|
||||
Поддерживаются устройства: light, switch, binary_sensor, sensor. light может работать как диммер
|
||||
## Установка
|
||||
В папке config/custom_components выполнить:
|
||||
```shell
|
||||
git clone https://github.com/andvikt/mega.git
|
||||
```
|
||||
Обновление:
|
||||
```shell
|
||||
git pull
|
||||
```
|
||||
Рекомендованнй способ - через [HACS](https://hacs.xyz/docs/installation/installation).
|
||||
После установки HACS, нужно перейти в меню hacs -> integrations, далее в верхнем правом углу
|
||||
нажать три точки, где будет `Custom repositories`, открыть, нажать add и добавить `https://github.com/andvikt/mega_hacs.git`
|
||||
|
||||
Альтернативный способ установки:
|
||||
```shell
|
||||
# из папки с конфигом
|
||||
wget -q -O - https://raw.githubusercontent.com/andvikt/mega_hacs/master/install.sh | bash -
|
||||
```
|
||||
Перезагрузить HA
|
||||
|
||||
Для обновления повторить
|
||||
## Зависимости
|
||||
Перед использованием необходимо настроить интеграцию mqtt в HomeAssistant
|
||||
|
||||
|
||||
Reference in New Issue
Block a user