Koenkk / zigbee2mqtt

Zigbee 🐝 to MQTT bridge 🌉, get rid of your proprietary Zigbee bridges 🔨
https://www.zigbee2mqtt.io
GNU General Public License v3.0
11.79k stars 1.64k forks source link

support Osram Smart+ Motion Sensor? #507

Closed salopette closed 5 years ago

salopette commented 5 years ago

Hello, is Osram Smart + Motion Sensor supported?

https://www.osram-lamps.de/ekatalog/smart-home/smart-home-komponenten/smart-motion-sensor/index.jsp

dreimer1986 commented 5 years ago

I removed any instance to be found from .db and repaired and it ... just worked then? RePair is a mix of Pushing the button while pluggin in the battery and some fast pushing of the button, I got it by luck...

salopette commented 5 years ago

How does it look with the sensor? supported devices are listed with. But does not work.

{"id":21,"type":"EndDevice","ieeeAddr":"0x000d6f000f7109a2","nwkAddr":12943,"manufId":4174,"epList":[1,2],"status":"offline","joinTime":null,"endpoints":{"1":{"profId":260,"epId":1,"devId":1026,"inClusterList":[0,1,3,32,1026,1280,2821],"outClusterList":[25],"clusters":{}},"2":{"profId":260,"epId":2,"devId":263,"inClusterList":[0,1,3,1030,2821],"outClusterList":[3],"clusters":{}}},"_id":"JsDtgd6tedXIn12N"}

fademirci commented 5 years ago

How does it look with the sensor? supported devices are listed with. But does not work.

{"id":21,"type":"EndDevice","ieeeAddr":"0x000d6f000f7109a2","nwkAddr":12943,"manufId":4174,"epList":[1,2],"status":"offline","joinTime":null,"endpoints":{"1":{"profId":260,"epId":1,"devId":1026,"inClusterList":[0,1,3,32,1026,1280,2821],"outClusterList":[25],"clusters":{}},"2":{"profId":260,"epId":2,"devId":263,"inClusterList":[0,1,3,1030,2821],"outClusterList":[3],"clusters":{}}},"_id":"JsDtgd6tedXIn12N"}

Hi, can confirm .... still not working !

Any News?

kind regards FD

salopette commented 5 years ago

Yesterday I completely deleted the zigbee2mqtt folder and set everything up again. And the motion detector was immediately recognized correctly

schnub69 commented 5 years ago

Yesterday I completely deleted the zigbee2mqtt folder and set everything up again. And the motion detector was immediately recognized correctly

I got only iobroker.zigbee installed, then i reinstalled it, deleted the zigbee-shepherd-converters folder like in the referred issue. flashed my cc2531 with the latest prod image available. still get "cannot get node descriptor" :( is ther another folder i can delete? or db files? to try this?

i´ll tried with zigbee2mqtt and it connects fine, but shows only temperature? not occupancy?

MQTT publish: topic 'zigbee2mqtt/Osram Motion Sensor', payload '{"temperature":26.7,"linkquality":99}'

gabrieleantonini commented 5 years ago

Same here. I managed to pair the motion sensor correctly but I can only see periodic temperatureand linkquality messages. I'm running zigbee2mqtt v1.5.1 in a docker container

zigbee2mqtt:info 7/20/2019, 9:11:51 AM MQTT publish: topic 'zigbee2mqtt/osram_motion_01', payload '{"temperature":26,"linkquality":36}'

  zigbee2mqtt:info 7/20/2019, 9:12:51 AM MQTT publish: topic 'zigbee2mqtt/osram_motion_01', payload '{"temperature":26.01,"linkquality":36}'

  zigbee2mqtt:info 7/20/2019, 9:21:52 AM MQTT publish: topic 'zigbee2mqtt/osram_motion_01', payload '{"temperature":26.02,"linkquality":36}'

  zigbee2mqtt:info 7/20/2019, 9:22:52 AM MQTT publish: topic 'zigbee2mqtt/osram_motion_01', payload '{"temperature":26.03,"linkquality":36}'
dreimer1986 commented 5 years ago

Retry again and again until it finally works. This sensor is a bitch to pair. I had to do so last week, too after I killed my SD card and lost some stuff. Result: I tinkered around... 30 minutes? I removed all entries of the sensor from db while addin inactive and then restart it. At that time the sensor was/has to be without battery, then push the button and put the battery back in. Green LED lighting is a good sign, but as I said... took ages here to pair it properly. Seems like the sensor does strange stuff with the original gateay to be that easily paired. (But many OSRAM devices do funny things, like the lightify 4 way switch...)

gabrieleantonini commented 5 years ago

Hi @dreimer1986 , thanks for your reply. I've tried again a couple of times with the same following result:


  zigbee2mqtt:info 7/20/2019, 1:42:40 PM New device 'Motion Sensor-A' with address 0x000d6f000fcd2bda connected!

  zigbee2mqtt:info 7/20/2019, 1:42:40 PM MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"device_connected","message":"0x000d6f000fcd2bda","meta":{"modelID":"Motion Sensor-A"}}'

  zigbee2mqtt:info 7/20/2019, 1:43:28 PM MQTT publish: topic 'zigbee2mqtt/0x000d6f000fcd2bda', payload '{"temperature":28.12,"linkquality":99}'

  zigbee2mqtt:warn 7/20/2019, 1:45:42 PM Failed to configure 0x000d6f000fcd2bda (0x000d6f000fcd2bda) ('Error: AF data request fails, status code: 240. MAC transaction expired.') (attempt #1)

  zigbee2mqtt:warn 7/20/2019, 1:45:48 PM Failed to configure 0x000d6f000fcd2bda (0x000d6f000fcd2bda) ('Error: request unsuccess: 112') (attempt #2)

I'm going to try to enable more logging to try to get as much information as possile

mabi commented 5 years ago

I have a similar issue as @gabrieleantonini :

zigbee2mqtt version 1.5.1 (commit #ac3b924) Coordinator firmware version: '20190315' max_stability

8/29/2019, 7:10:52 AM - info: Successfully reenabled joining
8/29/2019, 7:12:05 AM - info: New device 'Motion Sensor-A' with address 0x00redacted000000 connected!
8/29/2019, 7:12:06 AM - info: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"device_connected","message":"0x00redacted000000","meta":{"modelID":"Motion Sensor-A"}}'
8/29/2019, 7:12:10 AM - warn: Failed to configure 0x00redacted000000 (0x00redacted000000) ('Error: AF data request fails, status code: 240. MAC transaction expired.') (attempt #1)
8/29/2019, 7:12:10 AM - warn: This can be ignored if the device is working properly
8/29/2019, 7:12:19 AM - warn: Failed to configure 0x00redacted000000 (0x00redacted000000) ('Error: request unsuccess: 112') (attempt #2)
8/29/2019, 7:12:19 AM - warn: This can be ignored if the device is working properly
8/29/2019, 7:13:05 AM - warn: Failed to configure 0x00redacted000000 (0x00redacted000000) ('Error: request unsuccess: 112') (attempt #3)
8/29/2019, 7:13:05 AM - warn: This can be ignored if the device is working properly
8/29/2019, 7:13:07 AM - info: MQTT publish: topic 'zigbee2mqtt/0x00redacted000000', payload '{"temperature":24.68,"linkquality":42}'
8/29/2019, 7:13:32 AM - info: Successfully reenabled joining

Any suggestion? Thank you.