Skip to content

Commit

Permalink
restructured services
Browse files Browse the repository at this point in the history
  • Loading branch information
wassfila committed Sep 6, 2021
1 parent 5e0bf6c commit e4e72aa
Show file tree
Hide file tree
Showing 119 changed files with 122 additions and 151 deletions.
25 changes: 0 additions & 25 deletions config.json

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
32 changes: 32 additions & 0 deletions containers/homeassistant/config/configuration.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:

# Text to speech
tts:
- platform: google_translate

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
sensor:
- platform: mqtt
state_topic: "nrf/bathroom tag"
name: "Bathroom Temperature"
value_template: "{{ value_json.temperature }}"
unit_of_measurement: "°C"
- platform: mqtt
state_topic: "nrf/bathroom tag"
name: "Bathroom Humidity"
value_template: "{{ value_json.humidity }}"
unit_of_measurement: "%"
icon: mdi:water-percent
cover:
- platform: "mqtt"
name: "Bedroom window roll"
availability_topic: "lzig/bridge/state"
command_topic: "lzig/bedroom roll/set"
position_template: "{{ value_json.position }}"
set_position_template: "{ \"position\": {{ position }} }"
set_position_topic: "lzig/bedroom roll/set"
position_topic: "lzig/bedroom roll"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
43 changes: 0 additions & 43 deletions docker-compose-lifo.yml

This file was deleted.

9 changes: 5 additions & 4 deletions docker-compose-thread.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ services:
- "1883:1883"
- "1884:1884"
volumes:
- ${PWD}/mosquitto/mosquitto.conf:/mosquitto/config/mosquitto.conf:ro
- ${PWD}/containers/mosquitto/mosquitto.conf:/mosquitto/config/mosquitto.conf:ro
restart: unless-stopped
influx:
image: influxdb:1.8
ports:
- "8086:8086"
volumes:
- ${PWD}/influxdb:/var/lib/influxdb
- ${PWD}/containers/influxdb:/var/lib/influxdb
- ${PWD}/py/influx/data:/var/log/influx
environment:
- INFLUXDB_DB:=mqtt
Expand All @@ -22,8 +22,9 @@ services:
image: grafana/grafana
network_mode: "host"
volumes:
- ${PWD}/grafana/data:/var/lib/grafana
- ${PWD}/grafana/grafana.ini:/etc/grafana/grafana.ini:ro
- ${PWD}/containers/grafana/data:/var/lib/grafana
- ${PWD}/containers/grafana/grafana.ini:/etc/grafana/grafana.ini:ro
- ${PWD}/containers/grafana/provisioning:/etc/grafana/provisioning:ro
depends_on:
- "influx"
restart: unless-stopped
71 changes: 51 additions & 20 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ services:
- "1883:1883"
- "1884:1883"
volumes:
- ${PWD}/mosquitto/mosquitto.conf:/mosquitto/config/mosquitto.conf:ro
- ${PWD}/containers/mosquitto/mosquitto.conf:/mosquitto/config/mosquitto.conf:ro
restart: unless-stopped
influx:
image: influxdb
ports:
- "8086:8086"
volumes:
- ${PWD}/influxdb:/var/lib/influxdb
- ${PWD}/py/influx/data:/var/log/influx
- ${PWD}/containers/influxdb:/var/lib/influxdb
- ${PWD}/containers/influxdb/data:/var/log/influx
environment:
- INFLUXDB_DB:=mqtt
grafana:
Expand All @@ -23,11 +23,33 @@ services:
- "3000:3000"
network_mode: "host"
volumes:
- ${PWD}/grafana/data:/var/lib/grafana
- ${PWD}/grafana/grafana.ini:/etc/grafana/grafana.ini:ro
- ${PWD}/grafana/provisioning:/etc/grafana/provisioning:ro
- ${PWD}/containers/grafana/data:/var/lib/grafana
- ${PWD}/containers/grafana/grafana.ini:/etc/grafana/grafana.ini:ro
- ${PWD}/containers/grafana/provisioning:/etc/grafana/provisioning:ro
depends_on:
- "influx"
zigbee2mqtt:
container_name: zigbee2mqtt
image: koenkk/zigbee2mqtt
volumes:
- ${PWD}/containers/zigbee2mqtt/data:/app/data
- /run/udev:/run/udev:ro
devices:
- /dev/ttyACM0:/dev/ttyACM0
restart: always
network_mode: host
privileged: true
environment:
- TZ=Europe/Berlin
homeassistant:
container_name: homeassistant
image: "ghcr.io/home-assistant/raspberrypi4-homeassistant:stable"
volumes:
- ${PWD}/containers/homeassistant/config:/config
- /etc/localtime:/etc/localtime:ro
restart: unless-stopped
privileged: true
network_mode: host
nrf2mqtt:
build:
context: ./py/nrf_mesh
Expand Down Expand Up @@ -57,12 +79,12 @@ services:
ports:
- "80:80"
volumes:
- ${PWD}/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ${PWD}/containers/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ${PWD}/web/overview/public:/usr/share/nginx/html/home:ro
- ${PWD}/zigbee/graph_view:/usr/share/nginx/html/zigbee:ro
- ${PWD}/js/bed_heating:/usr/share/nginx/html/bed:ro
- ${PWD}/js/heating:/usr/share/nginx/html/heat:ro
- ${PWD}/js/leds_panel:/usr/share/nginx/html/leds:ro
- ${PWD}/web/zigbee_graph_view:/usr/share/nginx/html/zigbee:ro
- ${PWD}/web/bed_heating:/usr/share/nginx/html/bed:ro
- ${PWD}/web/heating:/usr/share/nginx/html/heat:ro
- ${PWD}/web/leds_panel:/usr/share/nginx/html/leds:ro
- ${PWD}/../smart_home_3d_webapp:/usr/share/nginx/html/3d:ro
- ${PWD}/../nRF52_Mesh/nodes.json:/usr/share/nginx/html/nodes.json:ro
network_mode: "host"
Expand All @@ -85,12 +107,21 @@ services:
ports:
- 8090:80
restart: unless-stopped
zigAssRifo:
image: carldebilly/zigbee2mqttassistant
environment:
- Z2MA_SETTINGS__MQTTSERVER=10.0.0.42
- Z2MA_SETTINGS__BASETOPIC=rzig
- TZ=Europe/Berlin
ports:
- 8070:80
restart: unless-stopped
deconz:
image: marthoc/deconz
container_name: deconz
restart: always
volumes:
- ${PWD}/containers/conbee/data:/root/.local/share/dresden-elektronik/deCONZ
devices:
- /dev/ttyUSB0
environment:
- DECONZ_WEB_PORT=80
- DECONZ_WS_PORT=443
- DEBUG_INFO=1
- DEBUG_APS=0
- DEBUG_ZCL=0
- DEBUG_ZDP=0
- DEBUG_OTAU=0
ports:
- "8000:80"
32 changes: 32 additions & 0 deletions services.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
container:
- mosquitto
- influx
- grafana
- zigbee2mqtt
- homeassistant
- nginx
- zigAssMano
- zigAssLifo
- deconz
webapps:
- overview
- bed_heating
- heating
- leds_panel
- mesh_view
- zigbee_graph_view
python:
- nrf2mqtt
- udp2mqtt
- mqtt2influx
- bathroom_fan
- huelight_control
- home_status
nodejs:
- camera_lapse
- lifx_control
- pc_power
- watch_bots
- window_roll
native:
- openthread
4 changes: 2 additions & 2 deletions setup_thread_services.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
mkdir grafana/data
sudo chmod a+rw grafana/data
mkdir containers/grafana/data
sudo chmod a+rw containers/grafana/data
docker-compose -f docker-compose-thread.yml up -d --remove-orphans
pushd py/influx
sudo sh setup.sh
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
22 changes: 0 additions & 22 deletions zigbee/assistant/docker-compose.yml

This file was deleted.

20 changes: 0 additions & 20 deletions zigbee/conbee/docker-compose.yml

This file was deleted.

15 changes: 0 additions & 15 deletions zigbee/zigbee2mqtt/docker-compose.yml

This file was deleted.

0 comments on commit e4e72aa

Please sign in to comment.