integrated fix to create sbk backup compatible to a standard CCU. (#2366)

This commit is contained in:
Jens Maus
2022-01-30 16:41:37 +01:00
committed by GitHub
parent ebff37d822
commit cfec3f0f14
3 changed files with 10 additions and 1 deletions

View File

@@ -2,6 +2,11 @@
#### WARNING: This add-on is considered to be obsolete/retired in favor of the much more advanced third-party [RaspberryMatic CCU](https://github.com/jens-maus/RaspberryMatic/tree/master/home-assistant-addon) add-on for running a HomeMatic/homematicIP smart home central within HomeAssistant. If you want to migrate to the new add-on, please make sure to update to the latest version of this old "HomeMatic CCU" add-on first and then use the WebUI-based backup routines to export a `*.sbk` config backup file which you can then restore in the new "RaspberryMatic CCU" add-on afterwards (cf. [RaspberryMatic Documentation](https://github.com/jens-maus/RaspberryMatic/wiki/Installation-HomeAssistant)) #### WARNING: This add-on is considered to be obsolete/retired in favor of the much more advanced third-party [RaspberryMatic CCU](https://github.com/jens-maus/RaspberryMatic/tree/master/home-assistant-addon) add-on for running a HomeMatic/homematicIP smart home central within HomeAssistant. If you want to migrate to the new add-on, please make sure to update to the latest version of this old "HomeMatic CCU" add-on first and then use the WebUI-based backup routines to export a `*.sbk` config backup file which you can then restore in the new "RaspberryMatic CCU" add-on afterwards (cf. [RaspberryMatic Documentation](https://github.com/jens-maus/RaspberryMatic/wiki/Installation-HomeAssistant))
## 99.0.3
- integrated backup script fix to generate .sbk backups more
compatible to a standard CCU.
## 99.0.2 ## 99.0.2
- disabled hmip rf-firmware update to prevent accidently performed - disabled hmip rf-firmware update to prevent accidently performed

View File

@@ -1,4 +1,4 @@
version: 99.0.2 version: 99.0.3
slug: homematic slug: homematic
name: HomeMatic CCU name: HomeMatic CCU
description: HomeMatic central based on OCCU description: HomeMatic central based on OCCU

View File

@@ -67,6 +67,10 @@ if [[ -d "${TMPDIR}" ]]; then
rm -f "${TMPDIR}/usr/local/etc/config/groups.gson" "${TMPDIR}/usr/local/etc/config/userprofiles" rm -f "${TMPDIR}/usr/local/etc/config/groups.gson" "${TMPDIR}/usr/local/etc/config/userprofiles"
cp -a /data/* "${TMPDIR}/usr/local/etc/config/" cp -a /data/* "${TMPDIR}/usr/local/etc/config/"
# move crRFD files to data sub-dir to be compatible
mkdir -p "${TMPDIR}/usr/local/etc/config/crRFD/data"
mv "${TMPDIR}/usr/local/etc/config/crRFD/*" "${TMPDIR}/usr/local/etc/config/crRFD/data/" 2>/dev/null
# cleanup # cleanup
rm -f "${TMPDIR}/usr/local/etc/config/options.json" rm -f "${TMPDIR}/usr/local/etc/config/options.json"
rm -f "${TMPDIR}/usr/local/etc/config/groups.json" rm -f "${TMPDIR}/usr/local/etc/config/groups.json"