mirror of
https://github.com/andvikt/mega_hacs.git
synced 2025-12-08 07:34:27 +05:00
add hassfest
This commit is contained in:
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
|
||||
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