Skip to content

Commit

Permalink
HomeMatic: s6-overlay & tempio (home-assistant#1713)
Browse files Browse the repository at this point in the history
* HomeMatic: s6-overlay & tempio

* Use tempio

* fix line end

* Fix dev version

* Fix bugs
  • Loading branch information
pvizeli authored Dec 16, 2020
1 parent 681bac2 commit 9a360be
Show file tree
Hide file tree
Showing 36 changed files with 333 additions and 427 deletions.
4 changes: 3 additions & 1 deletion .devcontainer/supervisor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ set -eE
DOCKER_TIMEOUT=30
DOCKER_PID=0

SUPERVISOR_VERSON="$(curl -s https://version.home-assistant.io/dev.json | jq -e -r '.supervisor')"


function start_docker() {
local starttime
Expand Down Expand Up @@ -85,7 +87,7 @@ function run_supervisor() {
-e SUPERVISOR_NAME=hassio_supervisor \
-e SUPERVISOR_DEV=1 \
-e SUPERVISOR_MACHINE="qemux86-64" \
homeassistant/amd64-hassio-supervisor:dev
"homeassistant/amd64-hassio-supervisor:${SUPERVISOR_VERSON}"
}

function init_dbus() {
Expand Down
148 changes: 9 additions & 139 deletions homematic/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,157 +1,27 @@
# Changelog

## 10.3
## 11.0.0

- Migrate to s6-overlay & tempio
- Update OCCU to 3.55.5-1

## 10.3.0

- Flush ReGaHss config on shutdown
- Add ReGaHss reset option

## 10.2
## 10.2.0

- Update Bashio to fix the wait function
- Extend the log output

## 10.1
## 10.1.0

- Fix issue with SSL

## 10.0
## 10.0.0

- Add Ingress support
- Disable external ports per default
- Fix wrong version number
- Speedup start without sleeps

## 9.9

- Update glibc for armv7

## 9.8

- Update OCCU to 3.51.6-1

## 9.7

- Fix glibc error on i386/amd64

## 9.6

- Update OCCU to 3.49.17-4
- Use new gcc8 binary for i386
- Change ReGaHass to normal version

## 9.5

- Fix ReGaHss binary

## 9.4

- Update OCCU to 3.49.17-2
- Use new gcc8 binary for armhf
- Don't use ReGaHss-beta

## 9.3

- Update from bash to bashio
- Use debian as base image
- Fix config for group settings

## 9.2

- Update OCCU to 3.47.22-3

## 9.1

- Optimize InterfaceList handling
- Make userprofiles static

## 9.0

- Add Regahss (WebUI) support (experimentel)
- Update OCCU to 3.47.18-1

## 8.3

- Update OCCU to 3.47.10
- Add Port descriptions

## 8.2

- Update OCCU to 3.45.7

## 8.1

- Update OCCU to 3.43.15
- Migrate to new arch layering
- Better handling for errors with Firmware updates

## 8.0

- Update OCCU to 3.41.11
- Fix write error when starting OCCU / HmIP
- Redirect HMIPServer log to console

## 7.0

- Update OCCU to 3.41.7

## 6.0

- Allow customer firmware updates inside `/share`
- Update Hardware on startup
- Limit HmIP server to 64mb memory
- Set `rf_enable` default to `false`

## 5.0

- Save hmip_address.conf persistent

## 4.0

- New ubuntu base images
- Support firmware update of HM-MOD-RPI-PCB, HmIP-RFUSB
- Add HmIP support with HmIP-RFUSB

## 3.0

- Add periodically time sync

## 2.0

- Fix wrong Timezone
- Update OCCU to 3.37.8

## 1.0

- Change version format to other core add-ons
- Update OCCU to 2.35.16
- Disable AppArmor to work on system like HassOS

## 2.31.25-p2

- Bugfix with reset value on GPIO

## 2.31.25-p1

- Add `reset` options for RF modules

## 2.31.25-p0

- Update OCCU to 2.31.25

## 2.31.23-p0

- Update OCCU to 2.31.23

## 2.29.22-1-p1

- Fix bug in script
- Add wired port into config

## 2.29.22-1-p1

- Change config logic
- Add support for wired

## 2.29.22-1-p0

- Initial
19 changes: 7 additions & 12 deletions homematic/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ ARG BUILD_ARCH

# Install OCCU
WORKDIR /usr/src
RUN curl -SL https://github.com/jens-maus/occu/archive/${OCCU_VERSION}.tar.gz | tar xzf - \
RUN \
set -x \
&& curl -SL https://github.com/jens-maus/occu/archive/${OCCU_VERSION}.tar.gz | tar xzf - \
&& cd occu-${OCCU_VERSION} \
&& mkdir -p \
/boot \
Expand Down Expand Up @@ -74,15 +76,8 @@ RUN curl -SL https://github.com/jens-maus/occu/archive/${OCCU_VERSION}.tar.gz |
\
&& rm -rf /usr/src/occu-${OCCU_VERSION}

ENV HM_HOME=/opt/hm LD_LIBRARY_PATH=/opt/hm/lib:${LD_LIBRARY_PATH}
ENV \
HM_HOME=/opt/hm \
LD_LIBRARY_PATH=/opt/hm/lib:${LD_LIBRARY_PATH}

# Update config files
COPY data/config/* /opt/hm/etc/config/
COPY data/nginx.conf /etc/nginx/nginx.conf

# Setup start script
COPY data/run.sh /
COPY data/hm-firmware.sh data/hm-interface.sh /usr/lib/

WORKDIR /data
CMD [ "/run.sh" ]
COPY rootfs /
4 changes: 2 additions & 2 deletions homematic/build.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"i386": "homeassistant/i386-base-debian:bullseye"
},
"args": {
"OCCU_VERSION": "3.51.6-1",
"CCU_VERSION": "3.51.6"
"OCCU_VERSION": "3.55.5-1",
"CCU_VERSION": "3.55.5"
}
}
2 changes: 1 addition & 1 deletion homematic/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "HomeMatic CCU",
"version": "10.3",
"version": "11.0.0",
"slug": "homematic",
"description": "HomeMatic central based on OCCU",
"url": "https://github.com/home-assistant/hassio-addons/tree/master/homematic",
Expand Down
37 changes: 0 additions & 37 deletions homematic/data/hm-firmware.sh

This file was deleted.

40 changes: 0 additions & 40 deletions homematic/data/hm-interface.sh

This file was deleted.

Loading

0 comments on commit 9a360be

Please sign in to comment.