Browse Source

Statemaschine fix

mod_update
Dirk Alders 3 years ago
parent
commit
2c8cbf567e
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      piface_function.py

+ 2
- 0
piface_function.py View File

@@ -199,6 +199,7 @@ class state_machine_day_state(state_machine.state_machine):
199 199
             (CONDITION_IDLE, 1, STATE_IDLE),
200 200
         ),
201 201
         STATE_SUNRISE: (
202
+            (CONDITION_SLEEP, 1, STATE_SLEEP),
202 203
             (CONDITION_SUNSET, 1, STATE_SUNSET),
203 204
             (CONDITION_IDLE, 1, STATE_IDLE),
204 205
         ),
@@ -208,6 +209,7 @@ class state_machine_day_state(state_machine.state_machine):
208 209
         ),
209 210
         STATE_SLEEP: (
210 211
             (CONDITION_WAKE, 1, STATE_WAKE),
212
+            (CONDITION_SUNRISE, 1, STATE_SUNRISE),
211 213
             (CONDITION_IDLE, 1, STATE_IDLE),
212 214
         ),
213 215
     }

Loading…
Cancel
Save