Created
September 23, 2018 21:53
-
-
Save ShMcK/716faa1eb54c9959f34a98f62ecd8cc3 to your computer and use it in GitHub Desktop.
Alarm Clock XState Config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"initial": "Normal", | |
"states": { | |
"Normal": { | |
"on": { | |
"ALARM_ON": "AlarmSet" | |
} | |
}, | |
"AlarmGroup": { | |
"initial": "AlarmSet", | |
"on": { | |
"ALARM_OFF": "Normal" | |
}, | |
"states": { | |
"Set": { | |
"on": { | |
"RING_START": "Ringing" | |
} | |
}, | |
"Ringing": { | |
"on": { | |
"SNOOZE_START": "Snoozing" | |
} | |
}, | |
"Snoozing": { | |
"on": { | |
"SNOOZE_END": "Ringing" | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment