Add eufy-ha-mqtt-bridge

This commit is contained in:
Max Winterstein
2020-12-31 00:28:30 +01:00
parent b437616009
commit 1416aface1
6 changed files with 68 additions and 1 deletions

View File

@@ -1,3 +1,6 @@
# homeassistant-addons
Home Assistant Addon repository -- currently only for my `ioBroker` playground.
Home Assistant Addon repository containing
* ioBroker (iobroker.net)
* eufy-ha-mqtt-bridge (https://github.com/matijse/eufy-ha-mqtt-bridge)

View File

@@ -0,0 +1,4 @@
# Changelog
## [0.1.0] - 2020-12-31
- Initial release

View File

@@ -0,0 +1,7 @@
FROM matijse/eufy-ha-mqtt-bridge
RUN apt-get update && apt-get install -y jq sqlite3
RUN npm install json2yaml
COPY docker-entrypoint.sh /
ENTRYPOINT ["/docker-entrypoint.sh"]

View File

@@ -0,0 +1,10 @@
# Home Assistant Add-on: eufy-ha-mqtt-bridge
---
## 🚨 This is some experimental release! 🚨
---
Quick wrapp around https://github.com/matijse/eufy-ha-mqtt-bridge.
Application data will be written to `/share/eufy-ha-mqtt-bridge/` so log and other files can be accessed from other addons, e.g. the `Samba share` addon, or view it at the `Visual Studio Code` add-on.
🚨 This also contains some plaintext configuration file with login credentials, so take care who can access your files! 🚨

View File

@@ -0,0 +1,30 @@
{
"name":"eufy-ha-mqtt-bridge",
"version":"0.1.0",
"slug":"eufy-ha-mqtt-bridge",
"description":"eufy-ha-mqtt-bridge",
"arch":[
"armhf",
"armv7",
"aarch64",
"amd64",
"i386"
],
"startup":"application",
"boot":"auto",
"options":{
"eufy":{
"username":"mail@example.org",
"password":"iliketurtles"
},
"mqtt":{
"url":"mqtt://192.168.x.x:1883",
"username":"homeassistant",
"password":"homeassistant"
}
},
"schema":false,
"stage":"experimental",
"url":"https://github.com/matijse/eufy-ha-mqtt-bridge/",
"map": ["share:rw"]
}

View File

@@ -0,0 +1,13 @@
#!/bin/sh
set -e
echo "Symlinking data dir"
mkdir -p /share/eufy-ha-mqtt-bridge/data
rm -rfv /app/data
ln -s /share/eufy-ha-mqtt-bridge/data /app # symlink data mount from share
echo "exporting environment vars form options file"
/app/node_modules/.bin/json2yml /data/options.json > /app/data/config.yml
echo "starting original stuff..."
exec npm run start