Add and apply prettier pre-commit hook

This commit is contained in:
Max Winterstein
2021-09-18 22:12:17 +02:00
parent 50c2e44b7f
commit 2b6ff89517
23 changed files with 197 additions and 147 deletions

View File

@@ -5,7 +5,7 @@ on:
workflow_dispatch: workflow_dispatch:
inputs: inputs:
version: version:
description: 'Image Tag' description: "Image Tag"
required: true required: true
jobs: jobs:
@@ -13,17 +13,13 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- - name: Checkout
name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
- - name: Set up QEMU
name: Set up QEMU
uses: docker/setup-qemu-action@v1 uses: docker/setup-qemu-action@v1
- - name: Set up Docker Buildx
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1 uses: docker/setup-buildx-action@v1
- - name: Login to DockerHub
name: Login to DockerHub
uses: docker/login-action@v1 uses: docker/login-action@v1
with: with:
username: ${{ secrets.DOCKERHUB_USERNAME }} username: ${{ secrets.DOCKERHUB_USERNAME }}

6
.pre-commit-config.yaml Normal file
View File

@@ -0,0 +1,6 @@
repos:
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.3.2
hooks:
- id: prettier
args: ["--ignore-path=.prettierignore"]

2
.prettierignore Normal file
View File

@@ -0,0 +1,2 @@
.devcontainer/**
.vscode/**

View File

@@ -2,21 +2,26 @@
<a href="https://www.buymeacoffee.com/MaxWinterstein" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" height="41" width="174"></a> <a href="https://www.buymeacoffee.com/MaxWinterstein" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" height="41" width="174"></a>
*Everything here is ment to be **experimental**. Happy to see feedback!* _Everything here is ment to be **experimental**. Happy to see feedback!_
Home Assistant Addon repository containing Home Assistant Addon repository containing
## <img src="eufy-ha-mqtt-bridge/icon.png" width="40px"> Eufy Home Assistant MQTT Bridge ([matijse/eufy-ha-mqtt-bridge](https://github.com/matijse/eufy-ha-mqtt-bridge)) ## <img src="eufy-ha-mqtt-bridge/icon.png" width="40px"> Eufy Home Assistant MQTT Bridge ([matijse/eufy-ha-mqtt-bridge](https://github.com/matijse/eufy-ha-mqtt-bridge))
Forwards Eufy Security push notifications to Home Assistant via MQTT. Forwards Eufy Security push notifications to Home Assistant via MQTT.
## <img src="toogoodtogo-ha-mqtt-bridge/icon.png" width="40px"> TooGoodToGo Home Assistant MQTT Bridge ([maxwinterstein/toogoodtogo-ha-mqtt-bridge](https://github.com/maxwinterstein/toogoodtogo-ha-mqtt-bridge)) ## <img src="toogoodtogo-ha-mqtt-bridge/icon.png" width="40px"> TooGoodToGo Home Assistant MQTT Bridge ([maxwinterstein/toogoodtogo-ha-mqtt-bridge](https://github.com/maxwinterstein/toogoodtogo-ha-mqtt-bridge))
Integrate your TooGoodToGo favourites to Home Assistant via MQTT. Integrate your TooGoodToGo favourites to Home Assistant via MQTT.
## <img src="ioBroker/icon.png" width="40px"> ioBroker ([iobroker.net](http://iobroker.net)) ## <img src="ioBroker/icon.png" width="40px"> ioBroker ([iobroker.net](http://iobroker.net))
Run ioBroker as Add-on. Run ioBroker as Add-on.
## <img src="octoprint-proxy/icon.png" width="40px"> OctoPrint Reverse Proxy ([octoprint.org](http://octoprint.org)) ## <img src="octoprint-proxy/icon.png" width="40px"> OctoPrint Reverse Proxy ([octoprint.org](http://octoprint.org))
Small proxy to add OctoPrint to the Home Assistant. Small proxy to add OctoPrint to the Home Assistant.
## Installation ## Installation
Go to the *Supervisor* Panel, select *Add-on Store*, click the three little dots on the upper right and select *Repositories*. Now fill the *Add repository* testbox with `https://github.com/MaxWinterstein/homeassistant-addons/` and click *Add*.
Go to the _Supervisor_ Panel, select _Add-on Store_, click the three little dots on the upper right and select _Repositories_. Now fill the _Add repository_ testbox with `https://github.com/MaxWinterstein/homeassistant-addons/` and click _Add_.

View File

@@ -1,96 +1,123 @@
# Changelog # Changelog
## [1.23.0] - 2021-09-18 ## [1.23.0] - 2021-09-18
- Update `eufy-ha-mqtt-bridge` to `0.2.23` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases) - Update `eufy-ha-mqtt-bridge` to `0.2.23` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases)
## [1.22.0] - 2021-09-13 ## [1.22.0] - 2021-09-13
- Update `eufy-ha-mqtt-bridge` to `0.2.22` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases) - Update `eufy-ha-mqtt-bridge` to `0.2.22` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases)
## [1.21.0] - 2021-07-31 ## [1.21.0] - 2021-07-31
- Update `eufy-ha-mqtt-bridge` to `0.2.21` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases) - Update `eufy-ha-mqtt-bridge` to `0.2.21` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases)
## [1.20.0] - 2021-07-07 ## [1.20.0] - 2021-07-07
- Update `eufy-ha-mqtt-bridge` to `0.2.20` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases) - Update `eufy-ha-mqtt-bridge` to `0.2.20` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases)
## [1.19.0] - 2021-07-06 ## [1.19.0] - 2021-07-06
- Update `eufy-ha-mqtt-bridge` to `0.2.19` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases) - Update `eufy-ha-mqtt-bridge` to `0.2.19` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases)
- Update baseimage to `7.0.2` - Update baseimage to `7.0.2`
## [1.18.0] - 2021-04-23 ## [1.18.0] - 2021-04-23
- Update `eufy-ha-mqtt-bridge` to `0.2.18` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases) - Update `eufy-ha-mqtt-bridge` to `0.2.18` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases)
## [1.17.0] - 2021-04-21 ## [1.17.0] - 2021-04-21
- Update `eufy-ha-mqtt-bridge` to `0.2.16` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases) - Update `eufy-ha-mqtt-bridge` to `0.2.16` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases)
## [1.16.1] - 2021-04-21 ## [1.16.1] - 2021-04-21
- Fixed bug in configuration. (see [issue](https://github.com/matijse/eufy-ha-mqtt-bridge/issues/62)) - Fixed bug in configuration. (see [issue](https://github.com/matijse/eufy-ha-mqtt-bridge/issues/62))
## [1.16.0] - 2021-04-20 ## [1.16.0] - 2021-04-20
- Update `eufy-ha-mqtt-bridge` to `0.2.15` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases) - Update `eufy-ha-mqtt-bridge` to `0.2.15` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases)
## [1.15.0] - 2021-04-14 ## [1.15.0] - 2021-04-14
- Update `eufy-ha-mqtt-bridge` to `0.2.14` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases) - Update `eufy-ha-mqtt-bridge` to `0.2.14` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases)
## [1.14.0] - 2021-04-08 ## [1.14.0] - 2021-04-08
- Update `eufy-ha-mqtt-bridge` to `0.2.13` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases) - Update `eufy-ha-mqtt-bridge` to `0.2.13` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases)
## [1.13.0] - 2021-03-06 ## [1.13.0] - 2021-03-06
- Update `eufy-ha-mqtt-bridge` to `0.2.12` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases) - Update `eufy-ha-mqtt-bridge` to `0.2.12` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases)
## [1.12.0] - 2021-03-06 ## [1.12.0] - 2021-03-06
- Introduce new `eval` options - Introduce new `eval` options
- Do no longer store `/data` inside `share` folder - Do no longer store `/data` inside `share` folder
## [1.11.0] - 2021-02-15 ## [1.11.0] - 2021-02-15
- Update `eufy-ha-mqtt-bridge` to `0.2.11` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases) - Update `eufy-ha-mqtt-bridge` to `0.2.11` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases)
## [1.10.0] - 2021-02-14 ## [1.10.0] - 2021-02-14
- Use Pre-build containers (no more unused docker images, yay). - Use Pre-build containers (no more unused docker images, yay).
**🚨 !!Important Update Notice!! 🚨** **🚨 !!Important Update Notice!! 🚨**
The Update progress might fail when the installed version is <1.10.0. The Update progress might fail when the installed version is <1.10.0.
Copy your *Configuration* to your clipboard and Uninstall/Install manually. Copy your _Configuration_ to your clipboard and Uninstall/Install manually.
## [1.9.0] - 2021-02-05 ## [1.9.0] - 2021-02-05
- Update `eufy-ha-mqtt-bridge` to `0.2.10` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases) - Update `eufy-ha-mqtt-bridge` to `0.2.10` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases)
- Add new configration option `mqtt.keepalive` - Add new configration option `mqtt.keepalive`
## [1.8.0] - 2021-01-28 ## [1.8.0] - 2021-01-28
- Update `eufy-ha-mqtt-bridge` to `0.2.9` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases) - Update `eufy-ha-mqtt-bridge` to `0.2.9` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases)
## [1.7.0] - 2021-01-27 ## [1.7.0] - 2021-01-27
- Update `eufy-ha-mqtt-bridge` to `0.2.8` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases) - Update `eufy-ha-mqtt-bridge` to `0.2.8` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases)
## [1.6.0] - 2021-01-25 ## [1.6.0] - 2021-01-25
- Update `eufy-ha-mqtt-bridge` to `0.2.7` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases) - Update `eufy-ha-mqtt-bridge` to `0.2.7` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases)
## [1.5.0] - 2021-01-25 ## [1.5.0] - 2021-01-25
- Update `eufy-ha-mqtt-bridge` to `0.2.6` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases) - Update `eufy-ha-mqtt-bridge` to `0.2.6` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases)
## [1.4.0] - 2021-01-23 ## [1.4.0] - 2021-01-23
- Update `eufy-ha-mqtt-bridge` to `0.2.5` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases) - Update `eufy-ha-mqtt-bridge` to `0.2.5` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases)
## [1.3.0] - 2021-01-22 ## [1.3.0] - 2021-01-22
- Update `eufy-ha-mqtt-bridge` to `0.2.4` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases) - Update `eufy-ha-mqtt-bridge` to `0.2.4` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases)
## [1.2.0] - 2021-01-21 ## [1.2.0] - 2021-01-21
- Update `eufy-ha-mqtt-bridge` to `0.2.3` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases) - Update `eufy-ha-mqtt-bridge` to `0.2.3` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases)
## [1.1.0] - 2021-01-11 ## [1.1.0] - 2021-01-11
- Update `eufy-ha-mqtt-bridge` to `0.2.1` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases) - Update `eufy-ha-mqtt-bridge` to `0.2.1` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases)
## [1.0.0] - 2021-01-10 ## [1.0.0] - 2021-01-10
- Switch from `main` branch to releases from `eufy-ha-mqtt-bridge` - Switch from `main` branch to releases from `eufy-ha-mqtt-bridge`
- Update `eufy-ha-mqtt-bridge` to `0.2.0` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases) - Update `eufy-ha-mqtt-bridge` to `0.2.0` [Changelog](https://github.com/matijse/eufy-ha-mqtt-bridge/releases)
## [0.7.0] - 2021-01-05 ## [0.7.0] - 2021-01-05
- Moved to dockerhub located images - Moved to dockerhub located images
- Updated logo - Updated logo
## [0.6.0] - 2021-01-02 ## [0.6.0] - 2021-01-02
- Add `hassio_role` and `hassio_api` to config to prevent error message - Add `hassio_role` and `hassio_api` to config to prevent error message
## [0.5.0] - 2021-01-02 ## [0.5.0] - 2021-01-02
- Improve image recration by adding some cache buster - Improve image recration by adding some cache buster
- Change to bashio logs - Change to bashio logs
- Add `log_level` cofiguration option - Add `log_level` cofiguration option
@@ -98,17 +125,21 @@
- Add some build date information - Add some build date information
## [0.4.0] - 2021-01-02 ## [0.4.0] - 2021-01-02
- Change base image to `hassioaddons/debian-base` - Change base image to `hassioaddons/debian-base`
- Add icon (thx to [davida72](https://github.com/matijse/eufy-ha-mqtt-bridge/issues/1#issuecomment-753333591])) - Add icon (thx to [davida72](https://github.com/matijse/eufy-ha-mqtt-bridge/issues/1#issuecomment-753333591]))
## [0.3.0] - 2020-12-31 ## [0.3.0] - 2020-12-31
- Change name from **eufy-ha-mqtt-bridge** to **Eufy Home Assistant MQTT Bridge** - Change name from **eufy-ha-mqtt-bridge** to **Eufy Home Assistant MQTT Bridge**
## [0.2.0] - 2020-12-31 ## [0.2.0] - 2020-12-31
- Remove superflous `apt-get` part - Remove superflous `apt-get` part
- Added some 'do not edit' note to config.yml - Added some 'do not edit' note to config.yml
- Added some note about the rebuild button - Added some note about the rebuild button
- Dirtypatched log level for console output - Dirtypatched log level for console output
## [0.1.0] - 2020-12-31 ## [0.1.0] - 2020-12-31
- Initial release - Initial release

View File

@@ -1,17 +1,19 @@
# Home Assistant Add-on: Eufy Home Assistant MQTT Bridge # Home Assistant Add-on: Eufy Home Assistant MQTT Bridge
## Configuration ## Configuration
### `eval` (string) ### `eval` (string)
Allows to pass some bash commands to run every time before the start of the bridge. 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. Multi-line commands are possible but must end with `;`. See examples below.
You might want to disable this after a run. You might want to disable this after a run.
*Only use when you know what you are doing!* _Only use when you know what you are doing!_
#### Example: Symlink data dir to `shares` #### Example: Symlink data dir to `shares`
```yaml ```yaml
eval: | eval: |
bashio::log.info "Symlinking data dir"; bashio::log.info "Symlinking data dir";
@@ -21,6 +23,7 @@ eval: |
``` ```
#### Example: Copy logs to `shares` #### Example: Copy logs to `shares`
```yaml ```yaml
eval: cp -v /data/*.log /share; eval: cp -v /data/*.log /share;
``` ```
@@ -28,6 +31,7 @@ eval: cp -v /data/*.log /share;
Logs can now easily be accessed via e.g. _Visual Studio Code Add-on_. Logs can now easily be accessed via e.g. _Visual Studio Code Add-on_.
#### Example: Export payloads to file #### 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. To help adding more devices it is crucial to provide some information, see https://github.com/matijse/eufy-ha-mqtt-bridge/issues/7.
```yaml ```yaml
@@ -36,4 +40,4 @@ eval: >
/share/export.csv /share/export.csv
``` ```
*Note:* Asterisk must be removed from the double quotes. _Note:_ Asterisk must be removed from the double quotes.

View File

@@ -1,7 +1,9 @@
### 🚨 Important Information 🚨 ### 🚨 Important Information 🚨
* This addon recently switched to pre-build images. The Update progress might fail when the installed version is <1.10.0.
Copy your *Configuration* to your clipboard and Uninstall/Install manually. - This addon recently switched to pre-build images. The Update progress might fail when the installed version is <1.10.0.
* This is some experimental release! Copy your _Configuration_ to your clipboard and Uninstall/Install manually.
- This is some experimental release!
--- ---
# Home Assistant Add-on: Eufy Home Assistant MQTT Bridge # Home Assistant Add-on: Eufy Home Assistant MQTT Bridge
@@ -16,10 +18,8 @@
**Based on https://github.com/matijse/eufy-ha-mqtt-bridge.** **Based on https://github.com/matijse/eufy-ha-mqtt-bridge.**
## ♥ ## ♥
- [@matijse](https://github.com/matijse/) for coding this awesome bridge - [@matijse](https://github.com/matijse/) for coding this awesome bridge
- [@davida72](https://github.com/matijse/eufy-ha-mqtt-bridge/issues/1#issuecomment-753333591]) for the awesome icon - [@davida72](https://github.com/matijse/eufy-ha-mqtt-bridge/issues/1#issuecomment-753333591]) for the awesome icon

View File

@@ -4,13 +4,7 @@
"slug": "eufy-ha-mqtt-bridge", "slug": "eufy-ha-mqtt-bridge",
"image": "maxwinterstein/homeassistant-addon-eufy-ha-mqtt-bridge-{arch}", "image": "maxwinterstein/homeassistant-addon-eufy-ha-mqtt-bridge-{arch}",
"description": "Publish events as MQTT messages", "description": "Publish events as MQTT messages",
"arch": [ "arch": ["armhf", "armv7", "aarch64", "amd64", "i386"],
"armhf",
"armv7",
"aarch64",
"amd64",
"i386"
],
"startup": "application", "startup": "application",
"boot": "auto", "boot": "auto",
"options": { "options": {
@@ -49,9 +43,7 @@
}, },
"stage": "experimental", "stage": "experimental",
"url": "https://github.com/matijse/eufy-ha-mqtt-bridge/", "url": "https://github.com/matijse/eufy-ha-mqtt-bridge/",
"map": [ "map": ["share:rw"],
"share:rw"
],
"hassio_role": "default", "hassio_role": "default",
"hassio_api": true "hassio_api": true
} }

View File

@@ -1,28 +1,36 @@
# Changelog # Changelog
## [0.8.0] - 2021-02-26 ## [0.8.0] - 2021-02-26
- Introduce `eval` configuration option (see *Documentation* for more)
- Introduce `eval` configuration option (see _Documentation_ for more)
## [0.7.0] - 2021-02-13 ## [0.7.0] - 2021-02-13
- Added some more ports to be possibly exposed - Added some more ports to be possibly exposed
## [0.6.0] - 2021-02-12 ## [0.6.0] - 2021-02-12
- Use Pre-build containers (no more unused docker images, yay). - Use Pre-build containers (no more unused docker images, yay).
**🚨 !!Important Update Notice!! 🚨** **🚨 !!Important Update Notice!! 🚨**
The Update progress might fail when the installed version is <1.4.0. The Update progress might fail when the installed version is <1.4.0.
Copy your *Configuration* to your clipboard and Uninstall/Install manually. Copy your _Configuration_ to your clipboard and Uninstall/Install manually.
## [0.5.0] - 2021-01-04 ## [0.5.0] - 2021-01-04
- Fix two superflous warnings - Fix two superflous warnings
## [0.4.0] - 2020-12-30 ## [0.4.0] - 2020-12-30
- Change from sha image tag to v5.1.0 - Change from sha image tag to v5.1.0
## [0.3.0] - 2020-12-30 ## [0.3.0] - 2020-12-30
- Added some ports for free use (e.g. `simple api`) - Added some ports for free use (e.g. `simple api`)
## [0.2.0] - 2020-12-30 ## [0.2.0] - 2020-12-30
- Fix permission bug in dockerfile - Fix permission bug in dockerfile
## [0.1.0] - 2020-12-30 ## [0.1.0] - 2020-12-30
- Initial release - Initial release

View File

@@ -1,6 +1,7 @@
# Home Assistant Add-on: ioBroker # Home Assistant Add-on: ioBroker
## Installation ## Installation
After installation, and successful startup, the ioBroker instance should be available at port `8081`. After installation, and successful startup, the ioBroker instance should be available at port `8081`.
If your HA instance is running with SSL support, the `OPEN WEB UI` button might not work correctly. If your HA instance is running with SSL support, the `OPEN WEB UI` button might not work correctly.
@@ -8,12 +9,14 @@ If your HA instance is running with SSL support, the `OPEN WEB UI` button might
It might be up and running while the `Info` tab is not aware of this right now. Page reload might help. It might be up and running while the `Info` tab is not aware of this right now. Page reload might help.
## Updating `js-controller` ## Updating `js-controller`
The bundled `js-controller` is not (always) the most recent version. (Thanks to *tintim* [#21](1)).
Updating can be archived manually via `portainer` or by using the [`eval` setting](#eval-(string)). The bundled `js-controller` is not (always) the most recent version. (Thanks to _tintim_ [#21](1)).
Updating can be archived manually via `portainer` or by using the [`eval` setting](<#eval-(string)>).
Manually: Manually:
Jump into the container via `portainer` and run line by line: Jump into the container via `portainer` and run line by line:
```bash ```bash
maintenance on maintenance on
iobroker update iobroker update
@@ -21,27 +24,31 @@ iobroker upgrade self
curl -sL https://iobroker.net/fix.sh | bash curl -sL https://iobroker.net/fix.sh | bash
``` ```
## Configuration ## Configuration
### `eval` (string) ### `eval` (string)
Allows to pass some bash commands to run every time before the start of ioBroker. Allows to pass some bash commands to run every time before the start of ioBroker.
This can be used e.g. to upgrade the `js-controller`. This can be used e.g. to upgrade the `js-controller`.
Example: Example:
```yaml ```yaml
eval: "iobroker update && iobroker upgrade self" eval: "iobroker update && iobroker upgrade self"
``` ```
You might want to disable this after a run. You might want to disable this after a run.
*Only use when you know what you are doing!* _Only use when you know what you are doing!_
## TODO ## TODO
* Get the panel integration working (if this is possible)
* Use some official base image (maybe running the buanet dockerfile onto office image work) - Get the panel integration working (if this is possible)
- Use some official base image (maybe running the buanet dockerfile onto office image work)
## Technical notes ## Technical notes
The `buanet` docker image contains some pretty useful startup script. The `buanet` docker image contains some pretty useful startup script.
To ensure data stays persistent across restarts I simply softlink `/data` to `/opt/iobroker`. To ensure data stays persistent across restarts I simply softlink `/data` to `/opt/iobroker`.

View File

@@ -1,8 +1,9 @@
### 🚨 Important Information 🚨 ### 🚨 Important Information 🚨
* This addon recently switched to pre-build images. The Update progress might fail when the installed version is <0.6.0.
Copy your *Configuration* to your clipboard and Uninstall/Install manually. - This addon recently switched to pre-build images. The Update progress might fail when the installed version is <0.6.0.
* I do not guarantee that your ioBroker configuration will not get deleted! This is some experimental release! Copy your _Configuration_ to your clipboard and Uninstall/Install manually.
- I do not guarantee that your ioBroker configuration will not get deleted! This is some experimental release!
--- ---
# Home Assistant Add-on: ioBroker # Home Assistant Add-on: ioBroker
@@ -15,7 +16,6 @@
<a href="https://www.buymeacoffee.com/MaxWinterstein" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" height="41" width="174"></a> <a href="https://www.buymeacoffee.com/MaxWinterstein" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" height="41" width="174"></a>
This is a pretty basic implementation of ioBroker as Home Assistant Add-on. This is a pretty basic implementation of ioBroker as Home Assistant Add-on.
It is meant to provide some playground. It is meant to provide some playground.

View File

@@ -1,7 +1,7 @@
{ {
"build_from": { "build_from": {
"aarch64": "buanet/iobroker:v5.1.0-aarch64", "aarch64": "buanet/iobroker:v5.1.0-aarch64",
"amd64": "buanet/iobroker:v5.1.0-amd64", "amd64": "buanet/iobroker:v5.1.0-amd64",
"armv7": "buanet/iobroker:v5.1.0-armv7hf" "armv7": "buanet/iobroker:v5.1.0-armv7hf"
}
} }
}

View File

@@ -1,46 +1,46 @@
{ {
"name": "ioBroker", "name": "ioBroker",
"version": "0.8.0", "version": "0.8.0",
"image": "maxwinterstein/homeassistant-addon-iobroker-{arch}", "image": "maxwinterstein/homeassistant-addon-iobroker-{arch}",
"webui": "http://[HOST]:[PORT:8081]/", "webui": "http://[HOST]:[PORT:8081]/",
"slug": "iobroker", "slug": "iobroker",
"description": "Open source automation platform", "description": "Open source automation platform",
"ingress": false, "ingress": false,
"ingress_port": 8081, "ingress_port": 8081,
"panel_icon": "mdi:iobroker", "panel_icon": "mdi:iobroker",
"arch": ["armv7", "aarch64", "amd64"], "arch": ["armv7", "aarch64", "amd64"],
"startup": "application", "startup": "application",
"boot": "auto", "boot": "auto",
"options": { "options": {
"eval" : "" "eval": ""
}, },
"schema": { "schema": {
"eval" : "str?" "eval": "str?"
}, },
"ports": { "ports": {
"8081/tcp": 8081, "8081/tcp": 8081,
"8082/tcp": null, "8082/tcp": null,
"8083/tcp": null, "8083/tcp": null,
"8084/tcp": null, "8084/tcp": null,
"8085/tcp": null, "8085/tcp": null,
"8086/tcp": null, "8086/tcp": null,
"8087/tcp": null, "8087/tcp": null,
"8088/tcp": null, "8088/tcp": null,
"8089/tcp": null "8089/tcp": null
}, },
"ports_description": { "ports_description": {
"8081/tcp": "Admin interface", "8081/tcp": "Admin interface",
"8082/tcp": "reserved for addition addons", "8082/tcp": "reserved for addition addons",
"8083/tcp": "reserved for addition addons", "8083/tcp": "reserved for addition addons",
"8084/tcp": "reserved for addition addons", "8084/tcp": "reserved for addition addons",
"8085/tcp": "reserved for addition addons", "8085/tcp": "reserved for addition addons",
"8086/tcp": "reserved for addition addons", "8086/tcp": "reserved for addition addons",
"8087/tcp": "reserved for addition addons", "8087/tcp": "reserved for addition addons",
"8088/tcp": "reserved for addition addons", "8088/tcp": "reserved for addition addons",
"8089/tcp": "reserved for addition addons" "8089/tcp": "reserved for addition addons"
}, },
"stage": "experimental", "stage": "experimental",
"url": "https://github.com/MaxWinterstein/homeassistant-addons/", "url": "https://github.com/MaxWinterstein/homeassistant-addons/",
"hassio_role": "default", "hassio_role": "default",
"hassio_api": true "hassio_api": true
} }

View File

@@ -1,4 +1,5 @@
# Changelog # Changelog
## [1.0.0] - 2021-01-03 ## [1.0.0] - 2021-01-03
- Initial release - Initial release

View File

@@ -1,9 +1,9 @@
# Home Assistant Add-on: OctoPrint Proxy # Home Assistant Add-on: OctoPrint Proxy
Small *haproxy* based reverse proxy to have OctoPrint accessible from Home Assistant with a memory consumption less than 10Mbyte. Small _haproxy_ based reverse proxy to have OctoPrint accessible from Home Assistant with a memory consumption less than 10Mbyte.
Works okayish with OctoPi based installations, others not tested. Feedback welcome. Works okayish with OctoPi based installations, others not tested. Feedback welcome.
**Remember to enable the *Show in sidebar* option.** **Remember to enable the _Show in sidebar_ option.**
Webcam (and some other stuff) is not working right now, will fix some day. Webcam (and some other stuff) is not working right now, will fix some day.

View File

@@ -8,26 +8,20 @@
"ingress_port": 80, "ingress_port": 80,
"panel_title": "OctoPrint", "panel_title": "OctoPrint",
"panel_icon": "mdi:printer-3d-nozzle", "panel_icon": "mdi:printer-3d-nozzle",
"arch": [ "arch": ["armhf", "armv7", "aarch64", "amd64", "i386"],
"armhf",
"armv7",
"aarch64",
"amd64",
"i386"
],
"startup": "application", "startup": "application",
"boot": "auto", "boot": "auto",
"options": { "options": {
"octoprint_host" : "octopi", "octoprint_host": "octopi",
"octoprint_port" : "443", "octoprint_port": "443",
"ssl": { "ssl": {
"enabled": true, "enabled": true,
"verify": false "verify": false
} }
}, },
"schema": { "schema": {
"octoprint_host" : "str", "octoprint_host": "str",
"octoprint_port" : "port", "octoprint_port": "port",
"ssl": { "ssl": {
"enabled": "bool", "enabled": "bool",
"verify": "bool" "verify": "bool"

View File

@@ -1,30 +1,38 @@
# Changelog # Changelog
## [1.6.0] - 2021-03-08 ## [1.6.0] - 2021-03-08
- Update `toogoodtogo-ha-mqtt-bridge` to `1.5.0` (see [release notes](https://github.com/MaxWinterstein/toogoodtogo-ha-mqtt-bridge/releases) - Update `toogoodtogo-ha-mqtt-bridge` to `1.5.0` (see [release notes](https://github.com/MaxWinterstein/toogoodtogo-ha-mqtt-bridge/releases)
## [1.5.0] - 2021-03-06 ## [1.5.0] - 2021-03-06
- Update `toogoodtogo-ha-mqtt-bridge` to `1.4.0` (see [release notes](https://github.com/MaxWinterstein/toogoodtogo-ha-mqtt-bridge/releases)) - Update `toogoodtogo-ha-mqtt-bridge` to `1.4.0` (see [release notes](https://github.com/MaxWinterstein/toogoodtogo-ha-mqtt-bridge/releases))
## [1.4.0] - 2021-02-10 ## [1.4.0] - 2021-02-10
- Use Pre-build containers (no more unused docker images, yay). - Use Pre-build containers (no more unused docker images, yay).
**🚨 !!Important Update Notice!! 🚨** **🚨 !!Important Update Notice!! 🚨**
The Update progress might fail when the installed version is <1.4.0. The Update progress might fail when the installed version is <1.4.0.
Copy your *Configuration* to your clipboard and Uninstall/Install manually. Copy your _Configuration_ to your clipboard and Uninstall/Install manually.
## [1.3.0] - 2021-02-08 ## [1.3.0] - 2021-02-08
- Update `toogoodtogo-ha-mqtt-bridge` to `1.3.0` (see [release notes](https://github.com/MaxWinterstein/toogoodtogo-ha-mqtt-bridge/releases)) - Update `toogoodtogo-ha-mqtt-bridge` to `1.3.0` (see [release notes](https://github.com/MaxWinterstein/toogoodtogo-ha-mqtt-bridge/releases))
## [1.2.0] - 2021-02-07 ## [1.2.0] - 2021-02-07
- Update `toogoodtogo-ha-mqtt-bridge` to `1.2.0` (see [release notes](https://github.com/MaxWinterstein/toogoodtogo-ha-mqtt-bridge/releases)) - Update `toogoodtogo-ha-mqtt-bridge` to `1.2.0` (see [release notes](https://github.com/MaxWinterstein/toogoodtogo-ha-mqtt-bridge/releases))
## [1.1.0] - 2021-01-16 ## [1.1.0] - 2021-01-16
- Update `toogoodtogo-ha-mqtt-bridge` to `1.1.0` (see [release notes](https://github.com/MaxWinterstein/toogoodtogo-ha-mqtt-bridge/releases)) - Update `toogoodtogo-ha-mqtt-bridge` to `1.1.0` (see [release notes](https://github.com/MaxWinterstein/toogoodtogo-ha-mqtt-bridge/releases))
## [1.0.0] - 2021-01-14 ## [1.0.0] - 2021-01-14
- Update `toogoodtogo-ha-mqtt-bridge` to `1.0.0` (see [release notes](https://github.com/MaxWinterstein/toogoodtogo-ha-mqtt-bridge/releases)) - Update `toogoodtogo-ha-mqtt-bridge` to `1.0.0` (see [release notes](https://github.com/MaxWinterstein/toogoodtogo-ha-mqtt-bridge/releases))
- Add config for the new pull interval setting `every_n_minutes`. - Add config for the new pull interval setting `every_n_minutes`.
**Add `every_n_minutes: 10` to your configuration! (See example config)** **Add `every_n_minutes: 10` to your configuration! (See example config)**
## [0.1.0] - 2020-12-31 ## [0.1.0] - 2020-12-31
- Initial release - Initial release

View File

@@ -3,6 +3,7 @@
## Configuration ## Configuration
Example Config: Example Config:
```toml ```toml
mqtt: mqtt:
host: homeassistant host: homeassistant

View File

@@ -1,7 +1,9 @@
### 🚨 Important Information 🚨 ### 🚨 Important Information 🚨
* This addon recently switched to pre-build images. The Update progress might fail when the installed version is <1.4.0.
Copy your *Configuration* to your clipboard and Uninstall/Install manually. - This addon recently switched to pre-build images. The Update progress might fail when the installed version is <1.4.0.
* This is some experimental release! Copy your _Configuration_ to your clipboard and Uninstall/Install manually.
- This is some experimental release!
--- ---
# Home Assistant Add-on: TooGoodToGo Home Assistant MQTT Bridge # Home Assistant Add-on: TooGoodToGo Home Assistant MQTT Bridge
@@ -16,7 +18,6 @@
Based on https://github.com/MaxWinterstein/toogoodtogo-ha-mqtt-bridge Based on https://github.com/MaxWinterstein/toogoodtogo-ha-mqtt-bridge
[aarch64-shield]: https://img.shields.io/badge/aarch64-yes-green.svg [aarch64-shield]: https://img.shields.io/badge/aarch64-yes-green.svg
[amd64-shield]: https://img.shields.io/badge/amd64-yes-green.svg [amd64-shield]: https://img.shields.io/badge/amd64-yes-green.svg
[armhf-shield]: https://img.shields.io/badge/armhf-yes-green.svg [armhf-shield]: https://img.shields.io/badge/armhf-yes-green.svg

View File

@@ -1,9 +1,9 @@
{ {
"build_from": { "build_from": {
"aarch64": "ghcr.io/hassio-addons/base-python/aarch64:6.0.0", "aarch64": "ghcr.io/hassio-addons/base-python/aarch64:6.0.0",
"amd64": "ghcr.io/hassio-addons/base-python/amd64:6.0.0", "amd64": "ghcr.io/hassio-addons/base-python/amd64:6.0.0",
"armhf": "ghcr.io/hassio-addons/base-python/armhf:6.0.0", "armhf": "ghcr.io/hassio-addons/base-python/armhf:6.0.0",
"armv7": "ghcr.io/hassio-addons/base-python/armv7:6.0.0", "armv7": "ghcr.io/hassio-addons/base-python/armv7:6.0.0",
"i386": "ghcr.io/hassio-addons/base-python/i386:6.0.0" "i386": "ghcr.io/hassio-addons/base-python/i386:6.0.0"
}
} }
}

View File

@@ -4,13 +4,7 @@
"image": "maxwinterstein/homeassistant-addon-toogoodtogo-ha-mqtt-bridge-{arch}", "image": "maxwinterstein/homeassistant-addon-toogoodtogo-ha-mqtt-bridge-{arch}",
"slug": "tgtg-ha-mqtt-bridge", "slug": "tgtg-ha-mqtt-bridge",
"description": "Publish TooGoodToGo stock as MQTT messages", "description": "Publish TooGoodToGo stock as MQTT messages",
"arch": [ "arch": ["armhf", "armv7", "aarch64", "amd64", "i386"],
"armhf",
"armv7",
"aarch64",
"amd64",
"i386"
],
"startup": "application", "startup": "application",
"boot": "auto", "boot": "auto",
"options": { "options": {