From 2c8cbf567e833456a494042a4fa2c2d15f75eab4 Mon Sep 17 00:00:00 2001 From: Dirk Alders Date: Wed, 23 Dec 2020 18:41:37 +0100 Subject: [PATCH] Statemaschine fix --- piface_function.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/piface_function.py b/piface_function.py index aef9260..a4ac03c 100644 --- a/piface_function.py +++ b/piface_function.py @@ -199,6 +199,7 @@ class state_machine_day_state(state_machine.state_machine): (CONDITION_IDLE, 1, STATE_IDLE), ), STATE_SUNRISE: ( + (CONDITION_SLEEP, 1, STATE_SLEEP), (CONDITION_SUNSET, 1, STATE_SUNSET), (CONDITION_IDLE, 1, STATE_IDLE), ), @@ -208,6 +209,7 @@ class state_machine_day_state(state_machine.state_machine): ), STATE_SLEEP: ( (CONDITION_WAKE, 1, STATE_WAKE), + (CONDITION_SUNRISE, 1, STATE_SUNRISE), (CONDITION_IDLE, 1, STATE_IDLE), ), }