Files
addons/homematic/rootfs/etc/cont-init.d/hm_wired.sh
Pascal Vizeli 29f20f8ac7 HomeMatic: Migrate OCCU back to eq-3 (#1750)
* HomeMatic: Migrate OCCU back to eq-3

* fix OCCU variable

* fix naming
2021-01-06 10:14:18 +01:00

24 lines
710 B
Bash
Executable File

#!/usr/bin/with-contenv bashio
# ==============================================================================
# Update HomeMatic firmware
# ==============================================================================
# Wired support
if bashio::config.false 'wired_enable'; then
bashio::exit.ok
fi
bashio::log.info "Setup Hm-Wired"
# Generate config
tempio \
-conf /data/options.json \
-template /usr/share/tempio/hs485d.conf \
-out /etc/config/hs485d.conf
# Update Firmware
if "${HM_HOME}/bin/eq3configcmd" update-lgw-firmware -m /firmware/fwmap -c /etc/config/hs485d.conf -l 1; then
bashio::log.info "Wired update was successful"
else
bashio::log.error "Wired update fails!"
fi