Fix config style for new Supervisor/Hardware (#1825)

* New Supervisor Hardware

* Update more changelogs

* fix version

* Fix boot

* fix application
This commit is contained in:
Pascal Vizeli
2021-02-08 11:12:39 +01:00
committed by GitHub
parent 78007eca79
commit b8f2079607
28 changed files with 53 additions and 88 deletions

View File

@@ -6,8 +6,6 @@
"url": "https://github.com/home-assistant/hassio-addons/blob/master/ada", "url": "https://github.com/home-assistant/hassio-addons/blob/master/ada",
"arch": ["armhf", "armv7", "amd64"], "arch": ["armhf", "armv7", "amd64"],
"init": false, "init": false,
"startup": "application",
"boot": "auto",
"audio": true, "audio": true,
"homeassistant": "0.102.0", "homeassistant": "0.102.0",
"homeassistant_api": true, "homeassistant_api": true,

View File

@@ -5,9 +5,7 @@
"description": "The home server version of Almond", "description": "The home server version of Almond",
"url": "https://github.com/home-assistant/hassio-addons/blob/master/almond", "url": "https://github.com/home-assistant/hassio-addons/blob/master/almond",
"arch": ["armv7", "aarch64", "amd64"], "arch": ["armv7", "aarch64", "amd64"],
"startup": "application",
"init": false, "init": false,
"boot": "auto",
"discovery": ["almond"], "discovery": ["almond"],
"ingress": true, "ingress": true,
"panel_icon": "mdi:comment-eye-outline", "panel_icon": "mdi:comment-eye-outline",

View File

@@ -6,12 +6,10 @@
"url": "https://github.com/home-assistant/hassio-addons/tree/master/configurator", "url": "https://github.com/home-assistant/hassio-addons/tree/master/configurator",
"arch": ["armhf", "armv7", "aarch64", "amd64", "i386"], "arch": ["armhf", "armv7", "aarch64", "amd64", "i386"],
"homeassistant": "0.91.1", "homeassistant": "0.91.1",
"startup": "application",
"init": false, "init": false,
"ingress": true, "ingress": true,
"panel_icon": "mdi:wrench", "panel_icon": "mdi:wrench",
"homeassistant_api": true, "homeassistant_api": true,
"boot": "auto",
"map": ["backup:rw", "config:rw", "media:rw", "share:rw", "ssl:rw"], "map": ["backup:rw", "config:rw", "media:rw", "share:rw", "ssl:rw"],
"options": { "options": {
"dirsfirst": false, "dirsfirst": false,

View File

@@ -1,5 +1,9 @@
# Changelog # Changelog
## 6.6.5
- Update hardware configuration for Supervisor 2021.02.5
## 6.6.4 ## 6.6.4
- Fix errors with new Supervisor as transit update - Fix errors with new Supervisor as transit update

View File

@@ -1,12 +1,11 @@
{ {
"name": "deCONZ", "name": "deCONZ",
"version": "6.6.4", "version": "6.6.5",
"slug": "deconz", "slug": "deconz",
"description": "Control a Zigbee network with ConBee or RaspBee by Dresden Elektronik", "description": "Control a Zigbee network with ConBee or RaspBee by Dresden Elektronik",
"arch": ["amd64", "armhf", "aarch64"], "arch": ["amd64", "armhf", "aarch64"],
"url": "https://github.com/home-assistant/hassio-addons/tree/master/deconz", "url": "https://github.com/home-assistant/hassio-addons/tree/master/deconz",
"startup": "services", "startup": "services",
"boot": "auto",
"init": false, "init": false,
"ingress": true, "ingress": true,
"ingress_entry": "ingress.html", "ingress_entry": "ingress.html",
@@ -24,18 +23,18 @@
"40850/tcp": "deCONZ API backend (Not required for Ingress)" "40850/tcp": "deCONZ API backend (Not required for Ingress)"
}, },
"kernel_modules": true, "kernel_modules": true,
"auto_uart": true, "usb": true,
"udev": true, "udev": true,
"gpio": true, "gpio": true,
"apparmor": false, "apparmor": false,
"privileged": ["SYS_MODULE", "SYS_RAWIO"], "privileged": ["SYS_MODULE", "SYS_RAWIO"],
"devices": ["/dev/bus/usb:/dev/bus/usb:rwm", "/dev/mem:/dev/mem:rw"], "devices": ["/dev/mem:rw"],
"snapshot_exclude": ["*/otau"], "snapshot_exclude": ["*/otau"],
"options": { "options": {
"device": null "device": null
}, },
"schema": { "schema": {
"device": "str", "device": "device(subsystem=tty)",
"dbg_aps": "int?", "dbg_aps": "int?",
"dbg_info": "int?", "dbg_info": "int?",
"dbg_otau": "int?", "dbg_otau": "int?",

View File

@@ -6,24 +6,6 @@ TMP_FOLDER=$(mktemp -d)
# Lookup udev link # Lookup udev link
DECONZ_DEVICE=$(bashio::config 'device') DECONZ_DEVICE=$(bashio::config 'device')
if [[ -c "${DECONZ_DEVICE}" ]]; then
bashio::log.debug "Specified device points to a character special file, continuing"
else
bashio::log.info "Waiting for device..."
# 180 second timeout to wait for udev to finish processing
timeout=180
while [[ ! -L "${DECONZ_DEVICE}" ]]; do
if [[ "${timeout}" -eq 0 ]]; then
bashio::exit.nok "No device ${DECONZ_DEVICE} found!"
fi
bashio::log.debug "Waiting for udev to link device..,"
sleep 1
((timeout--))
done
DECONZ_DEVICE="$(readlink -f "${DECONZ_DEVICE}")"
bashio::log.debug "Found device! Location: ${DECONZ_DEVICE}"
fi
# VNC is not enabled as a separate service, as it cannot handle multiple # VNC is not enabled as a separate service, as it cannot handle multiple
# session when running in the foreground. # session when running in the foreground.

View File

@@ -1,14 +0,0 @@
#!/usr/bin/with-contenv bashio
# ==============================================================================
# Start udevd service
# ==============================================================================
if bashio::fs.directory_exists /run/udev; then
exec sleep infinity
fi
# Triggers udev reload in the background
./trigger &
bashio::log.info "Starting udevd..."
exec /lib/systemd/systemd-udevd 2>/dev/null

View File

@@ -1,12 +0,0 @@
#!/usr/bin/with-contenv bashio
# ==============================================================================
# Trigger a uDEV reload
# ==============================================================================
# Give udevd time to start
sleep 3
bashio::hardware.trigger
# Again, just to be sure
sleep 10
bashio::hardware.trigger

View File

@@ -7,7 +7,6 @@
"arch": ["armhf", "armv7", "aarch64", "amd64", "i386"], "arch": ["armhf", "armv7", "aarch64", "amd64", "i386"],
"advanced": true, "advanced": true,
"startup": "system", "startup": "system",
"boot": "auto",
"host_network": true, "host_network": true,
"options": { "options": {
"default_lease": 86400, "default_lease": 86400,

View File

@@ -7,7 +7,6 @@
"arch": ["armhf", "armv7", "aarch64", "amd64", "i386"], "arch": ["armhf", "armv7", "aarch64", "amd64", "i386"],
"advanced": true, "advanced": true,
"startup": "system", "startup": "system",
"boot": "auto",
"ports": { "ports": {
"53/tcp": 53, "53/tcp": 53,
"53/udp": 53 "53/udp": 53

View File

@@ -6,7 +6,6 @@
"url": "https://github.com/home-assistant/hassio-addons/tree/master/duckdns", "url": "https://github.com/home-assistant/hassio-addons/tree/master/duckdns",
"arch": ["armhf", "armv7", "aarch64", "amd64", "i386"], "arch": ["armhf", "armv7", "aarch64", "amd64", "i386"],
"startup": "services", "startup": "services",
"boot": "auto",
"map": ["ssl:rw"], "map": ["ssl:rw"],
"options": { "options": {
"lets_encrypt": { "lets_encrypt": {

View File

@@ -4,8 +4,6 @@
"slug": "google_assistant", "slug": "google_assistant",
"description": "A virtual personal assistant developed by Google", "description": "A virtual personal assistant developed by Google",
"url": "https://github.com/home-assistant/hassio-addons/tree/master/google_assistant", "url": "https://github.com/home-assistant/hassio-addons/tree/master/google_assistant",
"startup": "application",
"boot": "auto",
"arch": ["armhf", "armv7", "amd64"], "arch": ["armhf", "armv7", "amd64"],
"init": false, "init": false,
"advanced": true, "advanced": true,

View File

@@ -1,9 +1,10 @@
# Changelog # Changelog
## ## 11.1.0
- Migrate OCCU back to EQ3 - Migrate OCCU back to EQ3
- Use Home helper again - Use Home helper again
- Update hardware configuration for Supervisor 2021.02.5
## 11.0.6 ## 11.0.6

View File

@@ -1,15 +1,13 @@
{ {
"name": "HomeMatic CCU", "name": "HomeMatic CCU",
"version": "11.0.6", "version": "11.1.0",
"slug": "homematic", "slug": "homematic",
"description": "HomeMatic central based on OCCU", "description": "HomeMatic central based on OCCU",
"url": "https://github.com/home-assistant/hassio-addons/tree/master/homematic", "url": "https://github.com/home-assistant/hassio-addons/tree/master/homematic",
"arch": ["armv7", "i386"], "arch": ["armv7", "i386"],
"map": ["share:rw"], "map": ["share:rw"],
"startup": "system", "startup": "system",
"boot": "auto",
"timeout": 15, "timeout": 15,
"auto_uart": true,
"gpio": true, "gpio": true,
"apparmor": false, "apparmor": false,
"ingress": true, "ingress": true,
@@ -37,7 +35,7 @@
"rf": [ "rf": [
{ {
"type": "match(CCU2)", "type": "match(CCU2)",
"device": "match(^/dev/.*$)", "device": "device(subsystem=tty)",
"reset": "bool?" "reset": "bool?"
} }
], ],
@@ -53,7 +51,7 @@
"hmip": [ "hmip": [
{ {
"type": "match(HMIP_CCU2)", "type": "match(HMIP_CCU2)",
"device": "match(^/dev/.*$)" "device": "device(subsystem=tty)"
} }
], ],
"regahss_reset": "bool?" "regahss_reset": "bool?"

View File

@@ -6,7 +6,6 @@
"url": "https://github.com/home-assistant/hassio-addons/tree/master/mariadb", "url": "https://github.com/home-assistant/hassio-addons/tree/master/mariadb",
"arch": ["armhf", "armv7", "aarch64", "amd64", "i386"], "arch": ["armhf", "armv7", "aarch64", "amd64", "i386"],
"startup": "system", "startup": "system",
"boot": "auto",
"init": false, "init": false,
"timeout": 20, "timeout": 20,
"services": ["mysql:provide"], "services": ["mysql:provide"],

View File

@@ -6,7 +6,6 @@
"url": "https://github.com/home-assistant/hassio-addons/tree/master/mosquitto", "url": "https://github.com/home-assistant/hassio-addons/tree/master/mosquitto",
"arch": ["armhf", "armv7", "aarch64", "amd64", "i386"], "arch": ["armhf", "armv7", "aarch64", "amd64", "i386"],
"startup": "system", "startup": "system",
"boot": "auto",
"map": ["ssl", "share"], "map": ["ssl", "share"],
"discovery": ["mqtt"], "discovery": ["mqtt"],
"services": ["mqtt:provide"], "services": ["mqtt:provide"],

View File

@@ -5,8 +5,6 @@
"description": "An SSL/TLS proxy", "description": "An SSL/TLS proxy",
"url": "https://github.com/home-assistant/hassio-addons/tree/master/nginx_proxy", "url": "https://github.com/home-assistant/hassio-addons/tree/master/nginx_proxy",
"arch": ["armhf", "armv7", "aarch64", "amd64", "i386"], "arch": ["armhf", "armv7", "aarch64", "amd64", "i386"],
"startup": "application",
"boot": "auto",
"ports": { "ports": {
"80/tcp": null, "80/tcp": null,
"443/tcp": 443 "443/tcp": 443

View File

@@ -6,7 +6,6 @@
"url": "https://github.com/home-assistant/hassio-addons/tree/master/rpc_shutdown", "url": "https://github.com/home-assistant/hassio-addons/tree/master/rpc_shutdown",
"arch": ["armhf", "armv7", "aarch64", "amd64", "i386"], "arch": ["armhf", "armv7", "aarch64", "amd64", "i386"],
"startup": "services", "startup": "services",
"boot": "auto",
"stdin": true, "stdin": true,
"host_network": true, "host_network": true,
"options": { "options": {

View File

@@ -6,7 +6,6 @@
"url": "https://github.com/home-assistant/hassio-addons/tree/master/samba", "url": "https://github.com/home-assistant/hassio-addons/tree/master/samba",
"arch": ["armhf", "armv7", "aarch64", "amd64", "i386"], "arch": ["armhf", "armv7", "aarch64", "amd64", "i386"],
"startup": "services", "startup": "services",
"boot": "auto",
"init": false, "init": false,
"host_network": true, "host_network": true,
"map": ["config:rw", "ssl:rw", "addons:rw", "share:rw", "backup:rw", "media:rw"], "map": ["config:rw", "ssl:rw", "addons:rw", "share:rw", "backup:rw", "media:rw"],

View File

@@ -12,11 +12,10 @@
"ingress": true, "ingress": true,
"panel_icon": "mdi:console", "panel_icon": "mdi:console",
"panel_title": "Terminal", "panel_title": "Terminal",
"boot": "auto",
"hassio_api": true, "hassio_api": true,
"hassio_role": "manager", "hassio_role": "manager",
"audio": true, "audio": true,
"auto_uart": true, "uart": true,
"ports": { "ports": {
"22/tcp": null "22/tcp": null
}, },

View File

@@ -1,16 +1,21 @@
# Changelog # Changelog
## 2.0 ## 2.1.0
- Update hardware configuration for Supervisor 2021.02.5
- Use Alpine 3.13
## 2.0.0
- Rewrites add-on onto Bashio - Rewrites add-on onto Bashio
- Added documentation to the add-on repository - Added documentation to the add-on repository
- Code formatting - Code formatting
## 1.0 ## 1.0.0
- Update base image - Update base image
## 0.5 ## 0.5.0
- Added possibility for config options: - Added possibility for config options:
protocols: comen, fineoffset, mandolyn, oregon protocols: comen, fineoffset, mandolyn, oregon

View File

@@ -4,7 +4,10 @@ FROM $BUILD_FROM
ENV LANG C.UTF-8 ENV LANG C.UTF-8
# Install Telldus library for TellStick (using same approach as in hassio docker installation) # Install Telldus library for TellStick (using same approach as in hassio docker installation)
RUN apk add --no-cache \ ARG TELLDUS_COMMIT
RUN \
set -x \
&& apk add --no-cache \
confuse \ confuse \
libftdi1 \ libftdi1 \
libstdc++ \ libstdc++ \
@@ -21,8 +24,9 @@ RUN apk add --no-cache \
&& ln -s /usr/include/libftdi1/ftdi.h /usr/include/ftdi.h \ && ln -s /usr/include/libftdi1/ftdi.h /usr/include/ftdi.h \
&& mkdir -p /usr/src \ && mkdir -p /usr/src \
&& cd /usr/src \ && cd /usr/src \
&& git clone -b master --depth 1 https://github.com/telldus/telldus \ && git clone https://github.com/telldus/telldus \
&& cd telldus/telldus-core \ && cd telldus/telldus-core \
&& git reset --hard ${TELLDUS_COMMIT} \
&& sed -i \ && sed -i \
"/\<sys\/socket.h\>/a \#include \<sys\/select.h\>" \ "/\<sys\/socket.h\>/a \#include \<sys\/select.h\>" \
common/Socket_unix.cpp \ common/Socket_unix.cpp \

12
tellstick/build.json Normal file
View File

@@ -0,0 +1,12 @@
{
"build_from": {
"aarch64": "homeassistant/aarch64-base:3.13",
"amd64": "homeassistant/amd64-base:3.13",
"armhf": "homeassistant/armhf-base:3.13",
"armv7": "homeassistant/armv7-base:3.13",
"i386": "homeassistant/i386-base:3.13"
},
"args": {
"TELLDUS_COMMIT": "2598bbed16ffd701f2a07c99582f057a3decbaf3"
}
}

View File

@@ -1,14 +1,13 @@
{ {
"name": "TellStick", "name": "TellStick",
"version": "2.0", "version": "2.1.0",
"slug": "tellstick", "slug": "tellstick",
"description": "TellStick and TellStick Duo service", "description": "TellStick and TellStick Duo service",
"url": "https://github.com/home-assistant/hassio-addons/tree/master/tellstick", "url": "https://github.com/home-assistant/hassio-addons/tree/master/tellstick",
"arch": ["armhf", "armv7", "aarch64", "amd64", "i386"], "arch": ["armhf", "armv7", "aarch64", "amd64", "i386"],
"startup": "system", "startup": "system",
"stdin": true, "stdin": true,
"boot": "auto", "usb": true,
"devices": ["/dev/bus/usb:/dev/bus/usb:rwm"],
"options": { "options": {
"devices": [ "devices": [
{ {

View File

@@ -1,5 +1,9 @@
# Changelog # Changelog
## 0.9.1
- Update hardware configuration for Supervisor 2021.02.5
## 0.9.0 ## 0.9.0
- Update OpenZWave to ee90c89 - Update OpenZWave to ee90c89

View File

@@ -1,6 +1,6 @@
{ {
"name": "OpenZWave", "name": "OpenZWave",
"version": "0.9.0", "version": "0.9.1",
"slug": "zwave", "slug": "zwave",
"description": "Control a ZWave network with Home Assistant", "description": "Control a ZWave network with Home Assistant",
"arch": ["amd64", "i386", "armhf", "armv7", "aarch64"], "arch": ["amd64", "i386", "armhf", "armv7", "aarch64"],
@@ -10,7 +10,6 @@
"panel_icon": "mdi:z-wave", "panel_icon": "mdi:z-wave",
"panel_title": "OpenZWave", "panel_title": "OpenZWave",
"startup": "services", "startup": "services",
"boot": "auto",
"init": false, "init": false,
"stage": "experimental", "stage": "experimental",
"homeassistant": "0.110.0.dev", "homeassistant": "0.110.0.dev",
@@ -24,13 +23,12 @@
}, },
"services": ["mqtt:want"], "services": ["mqtt:want"],
"discovery": ["ozw"], "discovery": ["ozw"],
"auto_uart": true,
"options": { "options": {
"device": null, "device": null,
"network_key": "" "network_key": ""
}, },
"schema": { "schema": {
"device": "str", "device": "device(subsystem=tty)",
"network_key": "password", "network_key": "password",
"instance": "int(1,)?" "instance": "int(1,)?"
}, },

View File

@@ -1,5 +1,9 @@
# Changelog # Changelog
## 0.1.5
- Update hardware configuration for Supervisor 2021.02.5
## 0.1.4 ## 0.1.4
- Bump Z-Wave JS Server to 1.0.0-beta.4 - Bump Z-Wave JS Server to 1.0.0-beta.4

View File

@@ -16,13 +16,12 @@
"3000/tcp": "Z-Wave JS communication" "3000/tcp": "Z-Wave JS communication"
}, },
"discovery": ["zwave_js"], "discovery": ["zwave_js"],
"auto_uart": true,
"options": { "options": {
"device": null, "device": null,
"network_key": "" "network_key": ""
}, },
"schema": { "schema": {
"device": "str", "device": "device(subsystem=tty)",
"network_key": "match(|[0-9a-fA-F]{32,32})", "network_key": "match(|[0-9a-fA-F]{32,32})",
"emulate_hardware": "bool?" "emulate_hardware": "bool?"
}, },