HassIO add-on

This commit is contained in:
Otto Winter 2018-06-01 18:45:23 +02:00
parent 5b995c0692
commit 976627eb38
No known key found for this signature in database
GPG Key ID: DB66C0BE6013F97E
3 changed files with 48 additions and 0 deletions

20
esphomeyaml/Dockerfile Normal file
View File

@ -0,0 +1,20 @@
# Dockerfile for HassIO add-on
ARG BUILD_FROM
FROM $BUILD_FROM
ENV LANG C.UTF-8
# Install requirements for add-on
RUN apk add --no-cache python2 py2-pip git openssh libc6-compat && \
pip install --no-cache-dir platformio && \
platformio platform install espressif8266 \
--with-package tool-esptool \
--with-package framework-arduinoespressif8266 \
--with-package tool-mkspiffs \
--with-package tool-espotapy
RUN pip install --no-cache-dir \
git+git://github.com/OttoWinter/esphomeyaml.git@v1.6.0 \
tornado esptool
CMD ["esphomeyaml", "/config/esphomeyaml", "dashboard"]

23
esphomeyaml/config.json Normal file
View File

@ -0,0 +1,23 @@
{
"name": "esphomeyaml",
"version": "1.6.0",
"slug": "esphomeyaml",
"description": "esphomeyaml HassIO add-on for intelligently managing all your ESP8266/ESP32 devices.",
"url": "https://esphomelib.com/esphomeyaml/index.html",
"startup": "application",
"webui": "http://[HOST]:[PORT:6052]",
"boot": "auto",
"ports": {
"6052/tcp": 6052,
"6053/tcp": 6053
},
"auto_uart": true,
"map": [
"config:rw"
],
"options": {},
"environment": {
"ESPHOMEYAML_OTA_HOST_PORT": "6053"
},
"schema": {}
}

5
repository.json Normal file
View File

@ -0,0 +1,5 @@
{
"name": "esphomeyaml HassIO Add-On Repository",
"url": "https://github.com/OttoWinter/esphomeyaml",
"maintainer": "Otto Winter <contact@otto-winter.com>"
}