Skip to content

Commit bdba338

Browse files
authored
Correcting some existing events wrongly associated to Outdoor (weather) module instead of Presence. (openhab#15808)
Adding 'alarm_started' event. Signed-off-by: clinique <[email protected]>
1 parent 8bcbd45 commit bdba338

File tree

1 file changed

+8
-5
lines changed
  • bundles/org.openhab.binding.netatmo/src/main/java/org/openhab/binding/netatmo/internal/api/data

1 file changed

+8
-5
lines changed

bundles/org.openhab.binding.netatmo/src/main/java/org/openhab/binding/netatmo/internal/api/data/EventType.java

+8-5
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,20 @@ public enum EventType {
4646
@SerializedName("daily_summary") // When the Outdoor Camera video summary of the last 24 hours is available
4747
DAILY_SUMMARY(ModuleType.PRESENCE),
4848

49+
@SerializedName("vehicle") // When the Outdoor Camera detects a car
50+
VEHICLE(ModuleType.PRESENCE),
51+
4952
@SerializedName("movement") // When the Indoor Camera detects motion
5053
MOVEMENT(ModuleType.WELCOME),
5154

55+
@SerializedName("alarm_started") // When the Indoor Camera triggers alarm
56+
ALARM_STARTED(ModuleType.WELCOME),
57+
5258
@SerializedName("human") // When the camera detects human motion
53-
HUMAN(ModuleType.WELCOME, ModuleType.OUTDOOR, ModuleType.DOORBELL),
59+
HUMAN(ModuleType.WELCOME, ModuleType.PRESENCE, ModuleType.DOORBELL),
5460

5561
@SerializedName("animal") // When the camera detects animal motion
56-
ANIMAL(ModuleType.WELCOME, ModuleType.OUTDOOR),
57-
58-
@SerializedName("vehicle") // When the Outdoor Camera detects a car
59-
VEHICLE(ModuleType.OUTDOOR),
62+
ANIMAL(ModuleType.WELCOME, ModuleType.PRESENCE),
6063

6164
@SerializedName("new_module") // A new Module has been paired with the Indoor Camera
6265
NEW_MODULE(ModuleType.WELCOME),

0 commit comments

Comments
 (0)