diff --git a/configuration.yaml b/configuration.yaml index d401733..f01e4de 100644 --- a/configuration.yaml +++ b/configuration.yaml @@ -20,6 +20,19 @@ logger: default: info logs: 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: # mydomain.com:443 - proxied by nginx to port 8123 @@ -33,6 +46,11 @@ stream: python_script: +hacs: + token: !secret hacs_token + +lovelace_gen: + automation: - alias: Hallampa på initial_state: true @@ -47,6 +65,13 @@ automation: action: - service: light.turn_on entity_id: light.stora_hallen + - alias: Start homekit + trigger: + - platform: homeassistant + event: start + action: + - delay: 00:05 + - service: homekit.start browser_mod: devices: diff --git a/docker-compose.yml b/docker-compose.yml index cdd8e32..7f5d033 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -66,6 +66,30 @@ services: MYSQL_PASSWORD: hass # The following value is overridden in docker-compose.override.yml 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: container_name: Mosquitto @@ -90,9 +114,12 @@ services: - "8123:8123" volumes: - /root/docker/hass/home-assistant:/config + working_dir: /config environment: TZ: Europe/Stockholm XDG_CACHE_HOME: /config/.data + PIP_USER: "yes" + PYTHONUSERBASE: /config/.local appdaemon: container_name: AppDaemon