From bdba338f444474e1f83c08aad7c79fba97c796f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20L=27hopital?= Date: Thu, 26 Oct 2023 18:57:14 +0200 Subject: [PATCH] Correcting some existing events wrongly associated to Outdoor (weather) module instead of Presence. (#15808) Adding 'alarm_started' event. Signed-off-by: clinique --- .../netatmo/internal/api/data/EventType.java | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/bundles/org.openhab.binding.netatmo/src/main/java/org/openhab/binding/netatmo/internal/api/data/EventType.java b/bundles/org.openhab.binding.netatmo/src/main/java/org/openhab/binding/netatmo/internal/api/data/EventType.java index fafec0bd4..d088853d2 100644 --- a/bundles/org.openhab.binding.netatmo/src/main/java/org/openhab/binding/netatmo/internal/api/data/EventType.java +++ b/bundles/org.openhab.binding.netatmo/src/main/java/org/openhab/binding/netatmo/internal/api/data/EventType.java @@ -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),