@@ -0,0 +1,30 @@
+name: home-assistant-ozwdaemon
+base: core20
+version: '0.1'
+summary: Single-line elevator pitch for your amazing snap # 79 char long summary
+description: |
+ This is my-snap's description. You have a paragraph or two to tell the
+ most important story about your snap. Keep it under 100 words though,
+ we live in tweetspace and your description wants to look good in the snap
+ store.
+
+grade: stable
+confinement: strict
+plugs:
+ docker-executables:
+ interface: content
+ target: $SNAP/docker-snap
+ default-provider: docker
+apps:
+ ozwdaemon:
+ command: bin/wrapper
+ plugs: [network, docker]
+parts:
+ plugin: dump
+ source: src/
+ organize:
+ wrapper: bin/
@@ -0,0 +1,22 @@
+version: '3'
+services:
+ ozwd:
+ image: openzwave/ozwdaemon:allinone-latest
+ container_name: "ozwd"
+ security_opt:
+ - seccomp:unconfined
+ devices:
+ - "/dev/ttyUSB0"
+ volumes:
+ - ./ozw:/opt/ozw/config
+ ports:
+ - "1983:1983"
+ - "5901:5901"
+ - "7800:7800"
+ environment:
+ MQTT_SERVER: "192.168.0.1"
+ MQTT_USERNAME: "my-username"
+ MQTT_PASSWORD: "my-password"
+ USB_PATH: "/dev/ttyUSB0"
+ OZW_NETWORK_KEY: "0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00"
+ restart: unless-stopped
@@ -0,0 +1,31 @@
+#!/usr/bin/env bash
+set -e
+if ! snapctl is-connected docker-executables; then
+ echo "the docker-executables content interface must be connected first!"
+ echo "please run \"snap connect $SNAP_NAME:docker-executables docker:docker-executables\""
+ exit 1
+fi
+if ! snapctl is-connected docker; then
+ echo "the docker socket interface must be connected first!"
+ echo "please run \"snap connect $SNAP_NAME:docker docker:docker-daemon\""
+COMPOSE_FILE="${SNAP}/services/ozwdaemon/docker-compose.yml"
+#$SNAP/docker-snap/bin/docker-compose -f $COMPOSE_FILE up -d
+# $SNAP/docker-snap/bin/docker run -it \
+# --security-opt seccomp=unconfined \
+# --device=/dev/ttyUSB0 \
+# -v $PWD/ozw:/opt/ozw/config \
+# -e MQTT_SERVER="10.100.200.102" \
+# -e USB_PATH=/dev/ttyUSB0 \
+# -p 1983:1983 \
+# -p 5901:5901 \
+# -p 7800:7800 \
+# openzwave/ozwdaemon:allinone-latest
+$SNAP/docker-snap/bin/docker "$@"