The documentation — http://docs.smartthings.com/en/latest/smartapp-developers-guide/state.html?highlight=atomicstate#atomic-state — indicates that
atomicState.fooState = now()
is an acceptable substitute for
state.fooState = now()
However, in practice, I get this error in the live log:
java.lang.NullPointerException: Cannot set property 'fooState' on null object @ line 88
What gives? Are atomicState’s not actually allowed? Do I need to explicitly create an atomicState somewhere? If so, how?