Skip to content

Commit

Permalink
add new clear_sysalarm function to hm_startup to ensure the
Browse files Browse the repository at this point in the history
ID_GW_SYSALARM sysvar is set to zero upon startup.
  • Loading branch information
jens-maus committed Nov 18, 2024
1 parent 627f907 commit e197f02
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
12 changes: 11 additions & 1 deletion buildroot-external/patches/occu/0072-WebUI-Fix-hm_autoconf.patch
Original file line number Diff line number Diff line change
Expand Up @@ -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 @@
}
}

Expand Down Expand Up @@ -501,6 +501,15 @@
+ }
+ }
+}
+
+proc clear_sysalarm {} {
+ rega_script {
+ object sv=dom.GetObject(ID_GW_SYSALARM);
+ if(sv != null) {
+ sv.State(0);
+ }
+ }
+}
+
################################################################################
# Einsprungpunkt #
Expand All @@ -510,3 +519,4 @@
+create_default_objects
+convert_byte2int_HSSDPs
+fix_alarmDPs
+clear_sysalarm
Original file line number Diff line number Diff line change
Expand Up @@ -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 #
################################################################################
Expand All @@ -207,3 +216,4 @@ checkDevices
create_default_objects
convert_byte2int_HSSDPs
fix_alarmDPs
clear_sysalarm

0 comments on commit e197f02

Please sign in to comment.