From 29b6f3f3b9406e9933ad05b1331ab6d97803fb03 Mon Sep 17 00:00:00 2001 From: Nicolas Hilberg Date: Wed, 18 Sep 2024 21:46:02 +0200 Subject: [PATCH] add next_trigger_at, end_trigger, end_trigger_event to Trigger, add time to TriggerDetails --- src/dirigera/devices/scene.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/dirigera/devices/scene.py b/src/dirigera/devices/scene.py index 6a8c53e..3e3bb00 100644 --- a/src/dirigera/devices/scene.py +++ b/src/dirigera/devices/scene.py @@ -62,6 +62,11 @@ class Info(BaseIkeaModel): icon: Icon +class EndTriggerEvent(BaseIkeaModel): + type: str + trigger: TriggerDetails + + class Trigger(BaseIkeaModel): id: Optional[str] = ( None # Optional to allow creation of Trigger instances for create_scene() @@ -70,10 +75,14 @@ class Trigger(BaseIkeaModel): triggered_at: Optional[datetime.datetime] = None disabled: bool trigger: Optional[TriggerDetails] = None + next_trigger_at: Optional[datetime.datetime] = None + end_trigger: Optional[EndTriggerEvent] = None + end_trigger_event: Optional[EndTriggerEvent] = None class TriggerDetails(BaseIkeaModel): days: Optional[List[str]] = None + time: Optional[str] = None controllerType: Optional[ControllerType] = None buttonIndex: Optional[int] = None clickPattern: Optional[ClickPattern] = None