Add grafana, influx, hacs

This commit is contained in:
Thomas Lovén 2019-10-30 14:03:32 +01:00
parent 71e061c745
commit 460b1d2937
2 changed files with 52 additions and 0 deletions

View File

@ -20,6 +20,19 @@ logger:
default: info default: info
logs: logs:
homeassistant.components.http.view: warn homeassistant.components.http.view: warn
influxdb:
host: influx
username: hass
password: hass
database: hass
homekit:
ip_address: !secret host_ip
auto_start: false
filter:
include_domains:
- light
- switch
http: http:
# mydomain.com:443 - proxied by nginx to port 8123 # mydomain.com:443 - proxied by nginx to port 8123
@ -33,6 +46,11 @@ stream:
python_script: python_script:
hacs:
token: !secret hacs_token
lovelace_gen:
automation: automation:
- alias: Hallampa på - alias: Hallampa på
initial_state: true initial_state: true
@ -47,6 +65,13 @@ automation:
action: action:
- service: light.turn_on - service: light.turn_on
entity_id: light.stora_hallen entity_id: light.stora_hallen
- alias: Start homekit
trigger:
- platform: homeassistant
event: start
action:
- delay: 00:05
- service: homekit.start
browser_mod: browser_mod:
devices: devices:

View File

@ -66,6 +66,30 @@ services:
MYSQL_PASSWORD: hass MYSQL_PASSWORD: hass
# The following value is overridden in docker-compose.override.yml # The following value is overridden in docker-compose.override.yml
MYSQL_ROOT_PASSWORD: secret MYSQL_ROOT_PASSWORD: secret
influx:
container_name: InfluxDB
image: influxdb
restart: always
volumes:
- /root/docker/influxdb:/var/lib/influxdb
environment:
TZ: Europe/Stockholm
INFLUXDB_DB: hass
INFLUXDB_USER: hass
INFLUXDB_USER_PASSWORD: hass
grafana:
container_name: Grafana
image: grafana/grafana
restart: always
ports:
- "3000:3000"
volumes:
- /root/docker/grafana:/var/lib/grafana
user: "0"
environment:
TZ: Europe/Stockholm
mosquitto: mosquitto:
container_name: Mosquitto container_name: Mosquitto
@ -90,9 +114,12 @@ services:
- "8123:8123" - "8123:8123"
volumes: volumes:
- /root/docker/hass/home-assistant:/config - /root/docker/hass/home-assistant:/config
working_dir: /config
environment: environment:
TZ: Europe/Stockholm TZ: Europe/Stockholm
XDG_CACHE_HOME: /config/.data XDG_CACHE_HOME: /config/.data
PIP_USER: "yes"
PYTHONUSERBASE: /config/.local
appdaemon: appdaemon:
container_name: AppDaemon container_name: AppDaemon