mirror of
https://github.com/mtan93/homeassistant-addons.git
synced 2026-03-16 13:20:55 +00:00
Add eufy-ha-mqtt-bridge
This commit is contained in:
@@ -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)
|
||||
4
eufy-ha-mqtt-bridge/CHANGELOG.md
Normal file
4
eufy-ha-mqtt-bridge/CHANGELOG.md
Normal file
@@ -0,0 +1,4 @@
|
||||
# Changelog
|
||||
|
||||
## [0.1.0] - 2020-12-31
|
||||
- Initial release
|
||||
7
eufy-ha-mqtt-bridge/Dockerfile
Normal file
7
eufy-ha-mqtt-bridge/Dockerfile
Normal 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"]
|
||||
10
eufy-ha-mqtt-bridge/README.md
Normal file
10
eufy-ha-mqtt-bridge/README.md
Normal 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! 🚨
|
||||
30
eufy-ha-mqtt-bridge/config.json
Normal file
30
eufy-ha-mqtt-bridge/config.json
Normal 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"]
|
||||
}
|
||||
13
eufy-ha-mqtt-bridge/docker-entrypoint.sh
Normal file
13
eufy-ha-mqtt-bridge/docker-entrypoint.sh
Normal 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
|
||||
Reference in New Issue
Block a user