Cannot get Writing Your First SmartApp to Work

should be:

log.debug "motionDetectedHandler called: ${evt.value}"
(string interpolation uses ${} not $() - easy mistake ;))

That said, once that’s fixed it’s possible you were running into an issue with the simulator. I’m going to update the docs to provide a warning at least that unfortunately some might run into an issue with the simulator not working correctly :frowning: