]> git.basschouten.com Git - openhab-addons.git/commitdiff
Fix Zoneminder Binding Action examples (#10484)
authorScott H <computergeek1507@users.noreply.github.com>
Thu, 8 Apr 2021 20:43:34 +0000 (16:43 -0400)
committerGitHub <noreply@github.com>
Thu, 8 Apr 2021 20:43:34 +0000 (22:43 +0200)
Signed-off-by: Scott Hanson <scooter_seh@yahoo.com>
bundles/org.openhab.binding.zoneminder/README.md

index 3cb7a14ef5f8b1a98eda8ee09eb6dd1db6d9665f..efd8e2a1569ddc81153863295d610e7a3a38cac5 100644 (file)
@@ -136,14 +136,14 @@ in the Monitor thing configuration.
 void triggerAlarm()
 ```
 
-### triggerAlarmOff
+### cancelAlarm
 
-The `triggerAlarmOff` action cancels a running alarm.
+The `cancelAlarm` action cancels a running alarm.
 
-##### triggerAlarmOff - cancel an alarm
+##### cancelAlarm - cancel an alarm
 
 ```java
-void triggerAlarmOff()
+void cancelAlarm()
 ```
 
 ### Requirements
@@ -231,7 +231,7 @@ when
     Item MotionSensorAlarm changed to ON
 then
     val zmActions = getActions("zoneminder", "zoneminder:monitor:1")
-    zmActions.triggerAlarmOn(120)
+    zmActions.triggerAlarm(120)
 end
 ```
 
@@ -241,7 +241,7 @@ when
     Item MotionSensorAlarm changed to ON
 then
     val zmActions = getActions("zoneminder", "zoneminder:monitor:1")
-    zmActions.triggerAlarmOn()
+    zmActions.triggerAlarm()
 end
 ```
 
@@ -251,7 +251,7 @@ when
     Item MotionSensorAlarm changed to OFF
 then
     val zmActions = getActions("zoneminder", "zoneminder:monitor:1")
-    zmActions.triggerAlarmOff()
+    zmActions.cancelAlarm()
 end
 ```