From e197f02d056a9f40a876a63b662c0354ec0cb498 Mon Sep 17 00:00:00 2001 From: Jens Maus Date: Mon, 18 Nov 2024 23:26:33 +0100 Subject: [PATCH] add new clear_sysalarm function to hm_startup to ensure the ID_GW_SYSALARM sysvar is set to zero upon startup. --- .../patches/occu/0072-WebUI-Fix-hm_autoconf.patch | 12 +++++++++++- .../occu/WebUI/bin/hm_startup | 10 ++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/buildroot-external/patches/occu/0072-WebUI-Fix-hm_autoconf.patch b/buildroot-external/patches/occu/0072-WebUI-Fix-hm_autoconf.patch index 3a8ec35250..986f4e1c11 100644 --- a/buildroot-external/patches/occu/0072-WebUI-Fix-hm_autoconf.patch +++ b/buildroot-external/patches/occu/0072-WebUI-Fix-hm_autoconf.patch @@ -316,7 +316,7 @@ #******************************************************************************* #* Sucht fertig konfigurierte Geräte und setzt deren Kanäle auf "fertig #* konfiguriert". -@@ -37,8 +17,193 @@ +@@ -37,8 +17,203 @@ } } @@ -501,6 +501,15 @@ + } + } +} ++ ++proc clear_sysalarm {} { ++ rega_script { ++ object sv=dom.GetObject(ID_GW_SYSALARM); ++ if(sv != null) { ++ sv.State(0); ++ } ++ } ++} + ################################################################################ # Einsprungpunkt # @@ -510,3 +519,4 @@ +create_default_objects +convert_byte2int_HSSDPs +fix_alarmDPs ++clear_sysalarm diff --git a/buildroot-external/patches/occu/0072-WebUI-Fix-hm_autoconf/occu/WebUI/bin/hm_startup b/buildroot-external/patches/occu/0072-WebUI-Fix-hm_autoconf/occu/WebUI/bin/hm_startup index 965ceb1b46..8bddc530c8 100755 --- a/buildroot-external/patches/occu/0072-WebUI-Fix-hm_autoconf/occu/WebUI/bin/hm_startup +++ b/buildroot-external/patches/occu/0072-WebUI-Fix-hm_autoconf/occu/WebUI/bin/hm_startup @@ -199,6 +199,15 @@ proc fix_alarmDPs {} { } } +proc clear_sysalarm {} { + rega_script { + object sv=dom.GetObject(ID_GW_SYSALARM); + if(sv != null) { + sv.State(0); + } + } +} + ################################################################################ # Einsprungpunkt # ################################################################################ @@ -207,3 +216,4 @@ checkDevices create_default_objects convert_byte2int_HSSDPs fix_alarmDPs +clear_sysalarm