zigbee2mqtt v 0.1.6.
I'm using several Hue motion sensors, all of them exhibit the same behavior of triggering/publishing an occupancy (motion) event every 10 minutes. For clarity, this happens when there is no actual motion, I've put one of them in a box to test/be sure nothing would trigger it.
Any idea what could be causing this? It makes them effectively useless for motion sensing purpose obviously :)
Would a debug log of this be useful?
# Me putting the sensor in a box
zigbee2mqtt:info 2018-10-11 08:35:29 MQTT publish, topic: 'zigbee2mqtt/<deviceid>', payload: '{"battery":100,"linkquality":28,"occupancy":true,"temperature":18.37,"illuminance":837}'
zigbee2mqtt:info 2018-10-11 08:35:34 MQTT publish, topic: 'zigbee2mqtt/<deviceid>', payload: '{"battery":100,"linkquality":55,"occupancy":true,"temperature":18.37,"illuminance":423}'
zigbee2mqtt:info 2018-10-11 08:35:39 MQTT publish, topic: 'zigbee2mqtt/<deviceid>', payload: '{"battery":100,"linkquality":57,"occupancy":true,"temperature":18.37,"illuminance":0}'
zigbee2mqtt:info 2018-10-11 08:35:44 MQTT publish, topic: 'zigbee2mqtt/<deviceid>', payload: '{"battery":100,"linkquality":57,"occupancy":true,"temperature":18.79,"illuminance":0}'
# Box closed, periodic occupancy reports start here
zigbee2mqtt:info 2018-10-11 08:36:00 MQTT publish, topic: 'zigbee2mqtt/<deviceid>', payload: '{"battery":100,"linkquality":55,"occupancy":true,"temperature":18.79,"illuminance":0}'
zigbee2mqtt:info 2018-10-11 08:36:02 MQTT publish, topic: 'zigbee2mqtt/<deviceid>', payload: '{"battery":100,"linkquality":60,"occupancy":true,"temperature":18.79,"illuminance":0}'
zigbee2mqtt:info 2018-10-11 08:46:00 MQTT publish, topic: 'zigbee2mqtt/<deviceid>', payload: '{"battery":100,"linkquality":60,"occupancy":true,"temperature":19.22,"illuminance":0}'
zigbee2mqtt:info 2018-10-11 08:56:01 MQTT publish, topic: 'zigbee2mqtt/<deviceid>', payload: '{"battery":100,"linkquality":57,"occupancy":true,"temperature":18.37,"illuminance":0}'
zigbee2mqtt:info 2018-10-11 08:56:03 MQTT publish, topic: 'zigbee2mqtt/<deviceid>', payload: '{"battery":100,"linkquality":60,"occupancy":true,"temperature":18.37,"illuminance":0}'
P.S. Note some/almost all messages are also duplicated, probably because of #360 ?
Could you provide the log for the motion sensor in the box with debug enabled? (https://github.com/Koenkk/zigbee2mqtt/wiki/Configuration, set log_level to debug)
Below the logs with log_level set to debug. Note I greped the deviceid, so not all log lines are there (that would be pretty noisy because of all the other devices). Is this OK or does it also exclude relevant log lines?
The same behavior is visible, true is being published @ 12:26, 12:36, 12:46, 12:56, etc
zigbee2mqtt:info 2018-10-11 12:15:13 <deviceid> (<deviceid>): 9290012607 - Philips Hue motion sensor (EndDevice)
zigbee2mqtt:info 2018-10-11 12:15:13 MQTT publish, topic: 'zigbee2mqtt/<deviceid>', payload: '{"battery":100,"linkquality":47,"occupancy":false,"temperature":17.38,"illuminance":0}'
zigbee2mqtt:debug 2018-10-11 12:15:17 Recieved zigbee message of type 'attReport' with data '{"cid":"msIlluminanceMeasurement","data":{"measuredValue":0}}' of device 'SML001' (<deviceid>)
zigbee2mqtt:info 2018-10-11 12:15:17 MQTT publish, topic: 'zigbee2mqtt/<deviceid>', payload: '{"battery":100,"linkquality":47,"occupancy":false,"temperature":17.38,"illuminance":0}'
zigbee2mqtt:debug 2018-10-11 12:15:24 Recieved zigbee message of type 'attReport' with data '{"cid":"msTemperatureMeasurement","data":{"measuredValue":1752}}' of device 'SML001' (<deviceid>)
zigbee2mqtt:info 2018-10-11 12:15:24 MQTT publish, topic: 'zigbee2mqtt/<deviceid>', payload: '{"battery":100,"linkquality":47,"occupancy":false,"temperature":17.52,"illuminance":0}'
zigbee2mqtt:debug 2018-10-11 12:15:24 Recieved zigbee message of type 'devChange' with data '{"cid":"msTemperatureMeasurement","data":{"measuredValue":1752}}' of device 'SML001' (<deviceid>)
zigbee2mqtt:error 2018-10-11 12:15:46 Failed to configure <deviceid> <deviceid>
zigbee2mqtt:debug 2018-10-11 12:16:14 Recieved zigbee message of type 'attReport' with data '{"cid":"msOccupancySensing","data":{"occupancy":0}}' of device 'SML001' (<deviceid>)
zigbee2mqtt:info 2018-10-11 12:16:14 MQTT publish, topic: 'zigbee2mqtt/<deviceid>', payload: '{"battery":100,"linkquality":49,"occupancy":true,"temperature":17.52,"illuminance":0}'
zigbee2mqtt:debug 2018-10-11 12:16:16 Recieved zigbee message of type 'attReport' with data '{"cid":"msOccupancySensing","data":{"occupancy":0}}' of device 'SML001' (<deviceid>)
zigbee2mqtt:info 2018-10-11 12:16:16 MQTT publish, topic: 'zigbee2mqtt/<deviceid>', payload: '{"battery":100,"linkquality":47,"occupancy":true,"temperature":17.52,"illuminance":0}'
zigbee2mqtt:debug 2018-10-11 12:16:18 Recieved zigbee message of type 'devInterview' with data '"<deviceid>"'
zigbee2mqtt:debug 2018-10-11 12:16:18 Recieved zigbee message of type 'devInterview' with data '"<deviceid>"'
zigbee2mqtt:debug 2018-10-11 12:16:19 Recieved zigbee message of type 'devInterview' with data '"<deviceid>"'
zigbee2mqtt:debug 2018-10-11 12:16:20 Recieved zigbee message of type 'devInterview' with data '"<deviceid>"'
zigbee2mqtt:debug 2018-10-11 12:16:20 Recieved zigbee message of type 'devInterview' with data '"<deviceid>"'
zigbee2mqtt:debug 2018-10-11 12:16:21 Recieved zigbee message of type 'devInterview' with data '"<deviceid>"'
zigbee2mqtt:debug 2018-10-11 12:16:21 Recieved zigbee message of type 'devInterview' with data '"<deviceid>"'
zigbee2mqtt:debug 2018-10-11 12:16:23 Recieved zigbee message of type 'devInterview' with data '"<deviceid>"'
zigbee2mqtt:debug 2018-10-11 12:16:24 Recieved zigbee message of type 'devInterview' with data '"<deviceid>"'
zigbee2mqtt:debug 2018-10-11 12:16:25 Recieved zigbee message of type 'devInterview' with data '"<deviceid>"'
zigbee2mqtt:debug 2018-10-11 12:16:25 Recieved zigbee message of type 'devInterview' with data '"<deviceid>"'
zigbee2mqtt:debug 2018-10-11 12:16:26 Recieved zigbee message of type 'devInterview' with data '"<deviceid>"'
zigbee2mqtt:debug 2018-10-11 12:16:27 Recieved zigbee message of type 'devInterview' with data '"<deviceid>"'
zigbee2mqtt:debug 2018-10-11 12:16:28 Recieved zigbee message of type 'devInterview' with data '"<deviceid>"'
zigbee2mqtt:debug 2018-10-11 12:16:28 Recieved zigbee message of type 'devIncoming' with data '"<deviceid>"' of device 'SML001' (<deviceid>)
zigbee2mqtt:debug 2018-10-11 12:16:28 Recieved zigbee message of type 'devStatus' with data '"online"' of device 'SML001' (<deviceid>)
zigbee2mqtt:info 2018-10-11 12:17:46 MQTT publish, topic: 'zigbee2mqtt/<deviceid>', payload: '{"battery":100,"linkquality":47,"occupancy":false,"temperature":17.52,"illuminance":0}'
zigbee2mqtt:debug 2018-10-11 12:18:46 Recieved zigbee message of type 'attReport' with data '{"cid":"genPowerCfg","data":{"batteryPercentageRemaining":200}}' of device 'SML001' (<deviceid>)
zigbee2mqtt:info 2018-10-11 12:18:46 MQTT publish, topic: 'zigbee2mqtt/<deviceid>', payload: '{"battery":100,"linkquality":49,"occupancy":false,"temperature":17.52,"illuminance":0}'
zigbee2mqtt:debug 2018-10-11 12:20:23 Recieved zigbee message of type 'attReport' with data '{"cid":"msTemperatureMeasurement","data":{"measuredValue":1766}}' of device 'SML001' (<deviceid>)
zigbee2mqtt:info 2018-10-11 12:20:23 MQTT publish, topic: 'zigbee2mqtt/<deviceid>', payload: '{"battery":100,"linkquality":49,"occupancy":false,"temperature":17.66,"illuminance":0}'
zigbee2mqtt:debug 2018-10-11 12:20:23 Recieved zigbee message of type 'devChange' with data '{"cid":"msTemperatureMeasurement","data":{"measuredValue":1766}}' of device 'SML001' (<deviceid>)
zigbee2mqtt:debug 2018-10-11 12:25:16 Recieved zigbee message of type 'attReport' with data '{"cid":"msIlluminanceMeasurement","data":{"measuredValue":0}}' of device 'SML001' (<deviceid>)
zigbee2mqtt:info 2018-10-11 12:25:16 MQTT publish, topic: 'zigbee2mqtt/<deviceid>', payload: '{"battery":100,"linkquality":55,"occupancy":false,"temperature":17.66,"illuminance":0}'
zigbee2mqtt:debug 2018-10-11 12:26:15 Recieved zigbee message of type 'attReport' with data '{"cid":"msOccupancySensing","data":{"occupancy":0}}' of device 'SML001' (<deviceid>)
zigbee2mqtt:info 2018-10-11 12:26:15 MQTT publish, topic: 'zigbee2mqtt/<deviceid>', payload: '{"battery":100,"linkquality":52,"occupancy":true,"temperature":17.66,"illuminance":0}'
zigbee2mqtt:debug 2018-10-11 12:26:16 Recieved zigbee message of type 'attReport' with data '{"cid":"msOccupancySensing","data":{"occupancy":0}}' of device 'SML001' (<deviceid>)
zigbee2mqtt:info 2018-10-11 12:26:16 MQTT publish, topic: 'zigbee2mqtt/<deviceid>', payload: '{"battery":100,"linkquality":52,"occupancy":true,"temperature":17.66,"illuminance":0}'
zigbee2mqtt:info 2018-10-11 12:27:46 MQTT publish, topic: 'zigbee2mqtt/<deviceid>', payload: '{"battery":100,"linkquality":52,"occupancy":false,"temperature":17.66,"illuminance":0}'
zigbee2mqtt:debug 2018-10-11 12:30:22 Recieved zigbee message of type 'attReport' with data '{"cid":"msTemperatureMeasurement","data":{"measuredValue":1766}}' of device 'SML001' (<deviceid>)
zigbee2mqtt:info 2018-10-11 12:30:22 MQTT publish, topic: 'zigbee2mqtt/<deviceid>', payload: '{"battery":100,"linkquality":55,"occupancy":false,"temperature":17.66,"illuminance":0}'
zigbee2mqtt:debug 2018-10-11 12:35:15 Recieved zigbee message of type 'attReport' with data '{"cid":"msIlluminanceMeasurement","data":{"measuredValue":0}}' of device 'SML001' (<deviceid>)
zigbee2mqtt:info 2018-10-11 12:35:15 MQTT publish, topic: 'zigbee2mqtt/<deviceid>', payload: '{"battery":100,"linkquality":55,"occupancy":false,"temperature":17.66,"illuminance":0}'
zigbee2mqtt:debug 2018-10-11 12:35:25 Recieved zigbee message of type 'attReport' with data '{"cid":"genPowerCfg","data":{"batteryPercentageRemaining":200}}' of device 'SML001' (<deviceid>)
zigbee2mqtt:info 2018-10-11 12:35:25 MQTT publish, topic: 'zigbee2mqtt/<deviceid>', payload: '{"battery":100,"linkquality":57,"occupancy":false,"temperature":17.66,"illuminance":0}'
zigbee2mqtt:debug 2018-10-11 12:36:15 Recieved zigbee message of type 'attReport' with data '{"cid":"msOccupancySensing","data":{"occupancy":0}}' of device 'SML001' (<deviceid>)
zigbee2mqtt:info 2018-10-11 12:36:15 MQTT publish, topic: 'zigbee2mqtt/<deviceid>', payload: '{"battery":100,"linkquality":57,"occupancy":true,"temperature":17.66,"illuminance":0}'
zigbee2mqtt:debug 2018-10-11 12:36:17 Recieved zigbee message of type 'attReport' with data '{"cid":"msOccupancySensing","data":{"occupancy":0}}' of device 'SML001' (<deviceid>)
zigbee2mqtt:info 2018-10-11 12:36:17 MQTT publish, topic: 'zigbee2mqtt/<deviceid>', payload: '{"battery":100,"linkquality":55,"occupancy":true,"temperature":17.66,"illuminance":0}'
zigbee2mqtt:info 2018-10-11 12:37:47 MQTT publish, topic: 'zigbee2mqtt/<deviceid>', payload: '{"battery":100,"linkquality":55,"occupancy":false,"temperature":17.66,"illuminance":0}'
zigbee2mqtt:debug 2018-10-11 12:40:21 Recieved zigbee message of type 'attReport' with data '{"cid":"msTemperatureMeasurement","data":{"measuredValue":1766}}' of device 'SML001' (<deviceid>)
zigbee2mqtt:info 2018-10-11 12:40:21 MQTT publish, topic: 'zigbee2mqtt/<deviceid>', payload: '{"battery":100,"linkquality":52,"occupancy":false,"temperature":17.66,"illuminance":0}'
zigbee2mqtt:debug 2018-10-11 12:40:51 Recieved zigbee message of type 'attReport' with data '{"cid":"msTemperatureMeasurement","data":{"measuredValue":1794}}' of device 'SML001' (<deviceid>)
zigbee2mqtt:info 2018-10-11 12:40:51 MQTT publish, topic: 'zigbee2mqtt/<deviceid>', payload: '{"battery":100,"linkquality":52,"occupancy":false,"temperature":17.94,"illuminance":0}'
zigbee2mqtt:debug 2018-10-11 12:40:51 Recieved zigbee message of type 'devChange' with data '{"cid":"msTemperatureMeasurement","data":{"measuredValue":1794}}' of device 'SML001' (<deviceid>)
zigbee2mqtt:debug 2018-10-11 12:45:14 Recieved zigbee message of type 'attReport' with data '{"cid":"msIlluminanceMeasurement","data":{"measuredValue":0}}' of device 'SML001' (<deviceid>)
zigbee2mqtt:info 2018-10-11 12:45:14 MQTT publish, topic: 'zigbee2mqtt/<deviceid>', payload: '{"battery":100,"linkquality":55,"occupancy":false,"temperature":17.94,"illuminance":0}'
zigbee2mqtt:debug 2018-10-11 12:46:16 Recieved zigbee message of type 'attReport' with data '{"cid":"msOccupancySensing","data":{"occupancy":0}}' of device 'SML001' (<deviceid>)
zigbee2mqtt:info 2018-10-11 12:46:16 MQTT publish, topic: 'zigbee2mqtt/<deviceid>', payload: '{"battery":100,"linkquality":60,"occupancy":true,"temperature":17.94,"illuminance":0}'
zigbee2mqtt:debug 2018-10-11 12:46:18 Recieved zigbee message of type 'attReport' with data '{"cid":"msOccupancySensing","data":{"occupancy":0}}' of device 'SML001' (<deviceid>)
zigbee2mqtt:info 2018-10-11 12:46:18 MQTT publish, topic: 'zigbee2mqtt/<deviceid>', payload: '{"battery":100,"linkquality":57,"occupancy":true,"temperature":17.94,"illuminance":0}'
zigbee2mqtt:info 2018-10-11 12:47:48 MQTT publish, topic: 'zigbee2mqtt/<deviceid>', payload: '{"battery":100,"linkquality":57,"occupancy":false,"temperature":17.94,"illuminance":0}'
zigbee2mqtt:debug 2018-10-11 12:50:20 Recieved zigbee message of type 'attReport' with data '{"cid":"msTemperatureMeasurement","data":{"measuredValue":1780}}' of device 'SML001' (<deviceid>)
zigbee2mqtt:info 2018-10-11 12:50:20 MQTT publish, topic: 'zigbee2mqtt/<deviceid>', payload: '{"battery":100,"linkquality":55,"occupancy":false,"temperature":17.8,"illuminance":0}'
zigbee2mqtt:debug 2018-10-11 12:50:20 Recieved zigbee message of type 'devChange' with data '{"cid":"msTemperatureMeasurement","data":{"measuredValue":1780}}' of device 'SML001' (<deviceid>)
zigbee2mqtt:debug 2018-10-11 12:52:03 Recieved zigbee message of type 'attReport' with data '{"cid":"genPowerCfg","data":{"batteryPercentageRemaining":200}}' of device 'SML001' (<deviceid>)
zigbee2mqtt:info 2018-10-11 12:52:03 MQTT publish, topic: 'zigbee2mqtt/<deviceid>', payload: '{"battery":100,"linkquality":52,"occupancy":false,"temperature":17.8,"illuminance":0}'
zigbee2mqtt:debug 2018-10-11 12:55:13 Recieved zigbee message of type 'attReport' with data '{"cid":"msIlluminanceMeasurement","data":{"measuredValue":0}}' of device 'SML001' (<deviceid>)
zigbee2mqtt:info 2018-10-11 12:55:13 MQTT publish, topic: 'zigbee2mqtt/<deviceid>', payload: '{"battery":100,"linkquality":52,"occupancy":false,"temperature":17.8,"illuminance":0}'
zigbee2mqtt:debug 2018-10-11 12:55:20 Recieved zigbee message of type 'attReport' with data '{"cid":"msTemperatureMeasurement","data":{"measuredValue":1795}}' of device 'SML001' (<deviceid>)
zigbee2mqtt:info 2018-10-11 12:55:20 MQTT publish, topic: 'zigbee2mqtt/<deviceid>', payload: '{"battery":100,"linkquality":52,"occupancy":false,"temperature":17.95,"illuminance":0}'
zigbee2mqtt:debug 2018-10-11 12:55:20 Recieved zigbee message of type 'devChange' with data '{"cid":"msTemperatureMeasurement","data":{"measuredValue":1795}}' of device 'SML001' (<deviceid>)
zigbee2mqtt:debug 2018-10-11 12:56:17 Recieved zigbee message of type 'attReport' with data '{"cid":"msOccupancySensing","data":{"occupancy":0}}' of device 'SML001' (<deviceid>)
zigbee2mqtt:info 2018-10-11 12:56:17 MQTT publish, topic: 'zigbee2mqtt/<deviceid>', payload: '{"battery":100,"linkquality":52,"occupancy":true,"temperature":17.95,"illuminance":0}'
zigbee2mqtt:debug 2018-10-11 12:56:18 Recieved zigbee message of type 'attReport' with data '{"cid":"msOccupancySensing","data":{"occupancy":0}}' of device 'SML001' (<deviceid>)
zigbee2mqtt:info 2018-10-11 12:56:18 MQTT publish, topic: 'zigbee2mqtt/<deviceid>', payload: '{"battery":100,"linkquality":55,"occupancy":true,"temperature":17.95,"illuminance":0}'
zigbee2mqtt:info 2018-10-11 12:57:48 MQTT publish, topic: 'zigbee2mqtt/<deviceid>', payload: '{"battery":100,"linkquality":55,"occupancy":false,"temperature":17.95,"illuminance":0}'
Thanks, this indeed is a bug in the generic_occupancy zigbee-shepherd-converter.
Could you provide an example where the occupancy should be triggered?
This is from a manual trigger of the motion sensor:
zigbee2mqtt:debug 2018-10-11 17:57:41 Recieved zigbee message of type 'attReport' with data '{"cid":"msOccupancySensing","data":{"occupancy":1}}' of device 'SML001' (<deviceid>)
zigbee2mqtt:info 2018-10-11 17:57:41 MQTT publish, topic: 'zigbee2mqtt/<deviceid>', payload: '{"battery":100,"linkquality":55,"occupancy":true,"temperature":19.64,"illuminance":0}'
zigbee2mqtt:debug 2018-10-11 17:57:41 Recieved zigbee message of type 'devChange' with data '{"cid":"msOccupancySensing","data":{"occupancy":1}}' of device 'SML001' (<deviceid>)
zigbee2mqtt:debug 2018-10-11 17:57:43 Recieved zigbee message of type 'attReport' with data '{"cid":"msOccupancySensing","data":{"occupancy":1}}' of device 'SML001' (<deviceid>)
zigbee2mqtt:info 2018-10-11 17:57:43 MQTT publish, topic: 'zigbee2mqtt/<deviceid>', payload: '{"battery":100,"linkquality":55,"occupancy":true,"temperature":19.64,"illuminance":0}'
I see this on my implementation of the bitron device too.
Its because we trigger by every attReport .. we need to check if specific value reported and then do occupancy.
From checking the old post who i麓m help by implementing this type of device i found the original attribute:
https://github.com/Koenkk/zigbee2mqtt/issues/310#issuecomment-416703966
@Koenkk
zigbee2mqtt:warn 2018-8-28 18:45:45 No converter available for '9290012607' with cid 'msOccupancySensing', type 'attReport' and data '{"cid":"msOccupancySensing","data":{"occupancy":0}}'
we have to check if occupancy return 1 and then to the timer initialisation.
Hello, I've got the same issue, my mom's said hallway light (with Hue motion sensor) turns on by itself and I didn't believe her until I checked logbook.
Can you check if this has been fixed in the latest dev branch?
@Koenkk I'm running it now to check. Will report back after it has ran for some time.
I did notice two things which I wanted to check, not sure if it's correct behavior or not:
zigbee2mqtt:debug 2018-10-15 19:04:31 Recieved zigbee message of type 'attReport' with data '{"cid":"msIlluminanceMeasurement","data":{"measuredValue":0}}' of device 'SML001' (<deviceid>)
zigbee2mqtt:info 2018-10-15 19:04:31 MQTT publish, topic: 'zigbee2mqtt/<deviceid>', payload: '{"occupancy":true,"linkquality":18,"illuminance":0}'
false after quiet a long delay (more than 60s in this example)zigbee2mqtt:debug 2018-10-15 19:04:35 Recieved zigbee message of type 'attReport' with data '{"cid":"msOccupancySensing","data":{"occupancy":0}}' of device 'SML001' (<deviceid>)
zigbee2mqtt:debug 2018-10-15 19:04:35 Recieved zigbee message of type 'devChange' with data '{"cid":"msOccupancySensing","data":{"occupancy":0}}' of device 'SML001' (<deviceid>)
zigbee2mqtt:debug 2018-10-15 19:04:37 Recieved zigbee message of type 'attReport' with data '{"cid":"msOccupancySensing","data":{"occupancy":0}}' of device 'SML001' (<deviceid>)
zigbee2mqtt:info 2018-10-15 19:05:40 MQTT publish, topic: 'zigbee2mqtt/<deviceid>', payload: '{"illuminance":0,"linkquality":7,"occupancy":false}'
cache_state (https://github.com/Koenkk/zigbee2mqtt/wiki/Configuration)occupancy: false event is generated, this can be configured, see https://github.com/Koenkk/zigbee2mqtt/wiki/Device-specific-configuration
- Yes, the whole state is send (this is needed for homeassistant to work properly). If you want to disable this use
cache_state(https://github.com/Koenkk/zigbee2mqtt/wiki/Configuration)- After 90 seconds an
occupancy: falseevent is generated, this can be configured, see https://github.com/Koenkk/zigbee2mqtt/wiki/Device-specific-configuration
Thanks for the info/links. I should've read the wiki better.
Is occupancy_timeout meant for devices that don't send a occupancy: 0 message?
Regarding the dev branch/fix: It seems to be working fine, ran it for over an hour and there no longer were periodic occupancy messages without motion :) So from my testing this issue seems to be fixed. Thanks for the quick solution! :+1:
For reference an excerpt from logs from the last hour with zigbee occupancy events that happened, notice the lack of MQTT events:
zigbee2mqtt:debug 2018-10-15 19:19:19 Recieved zigbee message of type 'attReport' with data '{"cid":"msTemperatureMeasurement","data":{"measuredValue":2757}}' of device 'SML001' (<deviceid>)
zigbee2mqtt:debug 2018-10-15 19:19:19 Recieved zigbee message of type 'devChange' with data '{"cid":"msTemperatureMeasurement","data":{"measuredValue":2757}}' of device 'SML001' (<deviceid>)
zigbee2mqtt:debug 2018-10-15 19:20:48 Recieved zigbee message of type 'attReport' with data '{"cid":"msOccupancySensing","data":{"occupancy":0}}' of device 'SML001' (<deviceid>)
zigbee2mqtt:debug 2018-10-15 19:20:49 Recieved zigbee message of type 'attReport' with data '{"cid":"msOccupancySensing","data":{"occupancy":0}}' of device 'SML001' (<deviceid>)
zigbee2mqtt:debug 2018-10-15 19:21:06 Recieved zigbee message of type 'attReport' with data '{"cid":"genPowerCfg","data":{"batteryPercentageRemaining":200}}' of device 'SML001' (<deviceid>)
zigbee2mqtt:debug 2018-10-15 19:29:18 Recieved zigbee message of type 'attReport' with data '{"cid":"msTemperatureMeasurement","data":{"measuredValue":2757}}' of device 'SML001' (<deviceid>)
zigbee2mqtt:debug 2018-10-15 19:29:48 Recieved zigbee message of type 'attReport' with data '{"cid":"msTemperatureMeasurement","data":{"measuredValue":2771}}' of device 'SML001' (<deviceid>)
zigbee2mqtt:debug 2018-10-15 19:29:48 Recieved zigbee message of type 'devChange' with data '{"cid":"msTemperatureMeasurement","data":{"measuredValue":2771}}' of device 'SML001' (<deviceid>)
zigbee2mqtt:debug 2018-10-15 19:30:14 Recieved zigbee message of type 'attReport' with data '{"cid":"msIlluminanceMeasurement","data":{"measuredValue":0}}' of device 'SML001' (<deviceid>)
zigbee2mqtt:debug 2018-10-15 19:30:48 Recieved zigbee message of type 'attReport' with data '{"cid":"msOccupancySensing","data":{"occupancy":0}}' of device 'SML001' (<deviceid>)
zigbee2mqtt:debug 2018-10-15 19:30:50 Recieved zigbee message of type 'attReport' with data '{"cid":"msOccupancySensing","data":{"occupancy":0}}' of device 'SML001' (<deviceid>)
zigbee2mqtt:debug 2018-10-15 19:34:17 Recieved zigbee message of type 'attReport' with data '{"cid":"msTemperatureMeasurement","data":{"measuredValue":2785}}' of device 'SML001' (<deviceid>)
occupancy_timeout is used for all occupancy sensors.
If set to 0 no occupancy: false will be send.
If set to e.g. 10 an occupancy: false will be send after no occupancy: true has been send for 10 seconds.
Thanks for testing!
This fixed solved the problem only partially and is failing in case of continuous motion.
See pull request https://github.com/Koenkk/zigbee-shepherd-converters/pull/184