]> git.basschouten.com Git - openhab-addons.git/commitdiff
Correcting some existing events wrongly associated to Outdoor (weather) module instea...
authorGaël L'hopital <gael@lhopital.org>
Thu, 26 Oct 2023 16:57:14 +0000 (18:57 +0200)
committerGitHub <noreply@github.com>
Thu, 26 Oct 2023 16:57:14 +0000 (18:57 +0200)
Adding 'alarm_started' event.

Signed-off-by: clinique <gael@lhopital.org>
bundles/org.openhab.binding.netatmo/src/main/java/org/openhab/binding/netatmo/internal/api/data/EventType.java

index fafec0bd4415a4bd2658a7b18d3348969f095062..d088853d2426d1cf06518d0adb7f5cb10b7a979e 100644 (file)
@@ -46,17 +46,20 @@ public enum EventType {
     @SerializedName("daily_summary") // When the Outdoor Camera video summary of the last 24 hours is available
     DAILY_SUMMARY(ModuleType.PRESENCE),
 
+    @SerializedName("vehicle") // When the Outdoor Camera detects a car
+    VEHICLE(ModuleType.PRESENCE),
+
     @SerializedName("movement") // When the Indoor Camera detects motion
     MOVEMENT(ModuleType.WELCOME),
 
+    @SerializedName("alarm_started") // When the Indoor Camera triggers alarm
+    ALARM_STARTED(ModuleType.WELCOME),
+
     @SerializedName("human") // When the camera detects human motion
-    HUMAN(ModuleType.WELCOME, ModuleType.OUTDOOR, ModuleType.DOORBELL),
+    HUMAN(ModuleType.WELCOME, ModuleType.PRESENCE, ModuleType.DOORBELL),
 
     @SerializedName("animal") // When the camera detects animal motion
-    ANIMAL(ModuleType.WELCOME, ModuleType.OUTDOOR),
-
-    @SerializedName("vehicle") // When the Outdoor Camera detects a car
-    VEHICLE(ModuleType.OUTDOOR),
+    ANIMAL(ModuleType.WELCOME, ModuleType.PRESENCE),
 
     @SerializedName("new_module") // A new Module has been paired with the Indoor Camera
     NEW_MODULE(ModuleType.WELCOME),