mirror of
https://github.com/andvikt/mega_hacs.git
synced 2025-12-10 16:44:28 +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 может работать как диммер
|
Поддерживаются устройства: 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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user