State Context Profile
A profile that has state context will be active as long as the context is met. A state context profile will have an enter task and an exit task. When a state context profile becomes active, the enter task will run once and the profile will wait until it becomes inactive back. Once the profile becomes inactive, it will run the exit task.
Any settings change through state context profile will restore to the original settings after profile becomes inactive. This happens even without explicitly restore the settings using exit task.
An exit task can sometimes run before the same profile’s entry task, if that entry task has a Wait action that delays part of the entry task for so long that the profile becomes inactive.
Event Context Profile
A profile that has event context will only be active momentarily to run the attached task once. It will not be continuously be active even though the context is still met. An event context profile does not have exit task.
Any settings change through event context profile will persist after the profile becomes inactive.