diff --git a/README.md b/README.md index 74e704d..ee2b3a7 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,16 @@ -App icon - -# AirSend Home Assistant - -Home Assistant Addon to control an AirSend device in a local network. - -## Installation - -1. Into the terminal, run `wget -q -O - https://raw.githubusercontent.com/devmel/hass_airsend-addon/master/install | bash -` - OR copy the `airsend` folder into your [addon folder](https://developers.home-assistant.io/docs/creating_integration_file_structure/#where-home-assistant-looks-for-integrations). -2. In Supervisor -> Add-on store -> Local add-ons, refresh, install and start AirSend addon +App icon + +# AirSend Home Assistant + +Home Assistant Addon to control an AirSend device in a local network. + +## Repository Installation + +[![Open your Home Assistant instance and show the add add-on repository dialog with a specific repository URL pre-filled.](https://my.home-assistant.io/badges/supervisor_add_addon_repository.svg)](https://my.home-assistant.io/redirect/supervisor_add_addon_repository/?repository_url=https%3A%2F%2Fgithub.com%2Fdevmel%2Fhass_airsend-addon) + + +## Manual Installation + +1. Into the terminal, run `wget -q -O - https://raw.githubusercontent.com/devmel/hass_airsend-addon/master/install | bash -` + OR copy the `airsend` folder into your [addon folder](https://developers.home-assistant.io/docs/creating_integration_file_structure/#where-home-assistant-looks-for-integrations). +2. In Supervisor -> Add-on store -> Local add-ons, refresh, install and start AirSend addon diff --git a/addons/airsend/poststate.sh b/addons/airsend/poststate.sh index c2d03f5..f2783e2 100644 --- a/addons/airsend/poststate.sh +++ b/addons/airsend/poststate.sh @@ -1,4 +1,5 @@ #!/usr/bin/with-contenv bashio + payload=`echo $2 | base64 -d` echo -en $payload | curl -s --data-binary @- -X POST -H "Authorization: Bearer ${SUPERVISOR_TOKEN}" -H "Content-Type: application/json" http://supervisor/core/api/states/$1 diff --git a/repository.yaml b/repository.yaml new file mode 100644 index 0000000..272cd68 --- /dev/null +++ b/repository.yaml @@ -0,0 +1,4 @@ +# https://developers.home-assistant.io/docs/add-ons/repository#repository-configuration +name: AirSend Home Assistant add-on repository +url: 'https://github.com/devmel/hass_airsend-addon' +maintainer: Devmel Apps