mirror of
https://github.com/mtan93/homeassistant-addons.git
synced 2026-03-08 05:21:51 +00:00
Change data location from /share to /data; Introduce eval
This commit is contained in:
32
eufy-ha-mqtt-bridge/DOCS.md
Normal file
32
eufy-ha-mqtt-bridge/DOCS.md
Normal file
@@ -0,0 +1,32 @@
|
||||
# Home Assistant Add-on: Eufy Home Assistant MQTT Bridge
|
||||
|
||||
## Configuration
|
||||
### `eval` (string)
|
||||
Allows to pass some bash commands to run every time before the start of the bridge.
|
||||
|
||||
Multi-line commands are possible but must end with `;`. See examples below.
|
||||
|
||||
You might want to disable this after a run.
|
||||
|
||||
*Only use when you know what you are doing!*
|
||||
|
||||
|
||||
#### Example: Symlink data dir to `shares`
|
||||
```yaml
|
||||
eval: |
|
||||
bashio::log.info "Symlinking data dir";
|
||||
mkdir -p /share/eufy-ha-mqtt-bridge/data;
|
||||
rm -rf /app/data;
|
||||
ln -s /share/eufy-ha-mqtt-bridge/data /app;
|
||||
```
|
||||
|
||||
#### Example: Export payloads to file
|
||||
To help adding more devices it is crucial to provide some information, see https://github.com/matijse/eufy-ha-mqtt-bridge/issues/7.
|
||||
|
||||
```yaml
|
||||
eval: >
|
||||
sqlite3 -csv /app/data/database.sqlite "SELECT "'*'" FROM push_payloads" >
|
||||
/share/export.csv
|
||||
```
|
||||
|
||||
*Note:* Asterisk must be removed from the double quotes.
|
||||
Reference in New Issue
Block a user