diff --git a/eufy-ha-mqtt-bridge/CHANGELOG.md b/eufy-ha-mqtt-bridge/CHANGELOG.md index 6c188b0..f881736 100644 --- a/eufy-ha-mqtt-bridge/CHANGELOG.md +++ b/eufy-ha-mqtt-bridge/CHANGELOG.md @@ -4,6 +4,7 @@ - Improve image recration by adding some cache buster - Change to bashio logs - Add `log_level` cofiguration option +- Add schema validation to configuration ## [0.4.0] - 2021-01-02 - Change base image to `hassioaddons/debian-base` diff --git a/eufy-ha-mqtt-bridge/config.json b/eufy-ha-mqtt-bridge/config.json index b115e82..ea03f48 100644 --- a/eufy-ha-mqtt-bridge/config.json +++ b/eufy-ha-mqtt-bridge/config.json @@ -1,30 +1,44 @@ { - "name":"Eufy Home Assistant MQTT Bridge", - "version":"0.4.0", - "slug":"eufy-ha-mqtt-bridge", - "description":"Publish events as MQTT messages", - "arch":[ - "armhf", - "armv7", - "aarch64", - "amd64", - "i386" + "name": "Eufy Home Assistant MQTT Bridge", + "version": "0.5.0", + "slug": "eufy-ha-mqtt-bridge", + "description": "Publish events as MQTT messages", + "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" - } + "startup": "application", + "boot": "auto", + "options": { + "eufy": { + "username": "mail@example.org", + "password": "iliketurtles" + }, + "mqtt": { + "url": "mqtt://192.168.x.x:1883", + "username": "homeassistant", + "password": "homeassistant" + }, + "log_level": "info" }, - "schema":false, - "stage":"experimental", - "url":"https://github.com/matijse/eufy-ha-mqtt-bridge/", - "map": ["share:rw"] + "schema": { + "eufy": { + "username": "str", + "password": "str" + }, + "mqtt": { + "url": "str", + "username": "str?", + "password": "str?" + }, + "log_level": "list(error|warn|info|http|verbose|debug|silly)" + }, + "stage": "experimental", + "url": "https://github.com/matijse/eufy-ha-mqtt-bridge/", + "map": [ + "share:rw" + ] } \ No newline at end of file