# Openhab 2 Lastest Motiondetector logger

**URL:** <https://community.openhab.org/t/openhab-2-lastest-motiondetector-logger/38898>\
**Category:** Scripts & Rules\
**Tags:** rules, openhab2\
**Created:** [January 17, 2018, 9:10pm UTC](https://community.openhab.org/t/openhab-2-lastest-motiondetector-logger/38898 "2018-01-17T21:10:23Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![rlkoshak](https://community.openhab.org/user_avatar/community.openhab.org/rlkoshak/32/75251_2.png) [@rlkoshak](https://community.openhab.org/u/rlkoshak)\
**Post date:** [January 17, 2018, 10:31pm UTC](https://community.openhab.org/t/openhab-2-lastest-motiondetector-logger/38898/2 "2018-01-17T22:31:31Z")

</div>

1. Please use code fences when posting code or logs: [How to use code fences](https://community.openhab.org/t/how-to-use-code-fences/38383)

2. Please post your Items and Group definitions

3. Your rule only triggers on Z\_MotionSensor\_Bureau\_M\_Alarm which appears to be only one of the three sensors.

4. If any members of the groups have not been saved to persistence then you will get errors because those items will return null for lastUpdate and you cannot sort null objects.

---

_[View the full topic](https://community.openhab.org/t/openhab-2-lastest-motiondetector-logger/38898)._
