@martijnpoppen works as a charm! Thanks a lot!
New app update (test: 2.7.3):
- NEW: ZD2102-5
- FIX: ZD2102-5 external switch
- FIX: ZD2102 missing alarm_generic
- FIX: ZD2102_5 alarm contact for internal and external switch
@PeterW For the ZD2102_5 both alarms are coming as a alarm_contact. So there’s no generic alarm for this device. Can you give it a try? ![]()
@martijnpoppen A bit more than “almost”!
With setting “No” for External, it works ok with the magnet, but with the setting Yes, both magnet and external inpiut has to be closed to turn off the alarm.
External contact + Magnet
[2022-01-10T20:22:09.990Z] Node[40]: [COMMAND_CLASS_BASIC] {“Value (Raw)”:{“type”:“Buffer”,“data”:[0]},“Value”:0}
[2022-01-10T20:22:10.022Z] Node[40]: [COMMAND_CLASS_NOTIFICATION] {“V1 Alarm Type (Raw)”:{“type”:“Buffer”,“data”:[6]},“V1 Alarm Type”:6,“V1 Alarm Level (Raw)”:{“type”:“Buffer”,“data”:[0]},“V1 Alarm Level”:0,“Notification Status (Raw)”:{“type”:“Buffer”,“data”:[255]},“Notification Status”:“On”,“Notification Type (Raw)”:{“type”:“Buffer”,“data”:[6]},“Notification Type”:“Access Control”,“Event (Raw)”:{“type”:“Buffer”,“data”:[23]},“Event”:23,“Properties1 (Raw)”:{“type”:“Buffer”,“data”:[0]},“Properties1”:{“Event Parameters Length”:0,“Sequence”:false},“Sequence Number (Raw)”:{“type”:“Buffer”,“data”:[0]},“Sequence Number”:0}
[2022-01-10T20:22:19.491Z] Node[40]: [COMMAND_CLASS_BASIC] {“Value (Raw)”:{“type”:“Buffer”,“data”:[255]},“Value”:255}
[2022-01-10T20:22:19.545Z] Node[40]: [COMMAND_CLASS_NOTIFICATION] {“V1 Alarm Type (Raw)”:{“type”:“Buffer”,“data”:[6]},“V1 Alarm Type”:6,“V1 Alarm Level (Raw)”:{“type”:“Buffer”,“data”:[255]},“V1 Alarm Level”:255,“Notification Status (Raw)”:{“type”:“Buffer”,“data”:[255]},“Notification Status”:“On”,“Notification Type (Raw)”:{“type”:“Buffer”,“data”:[6]},“Notification Type”:“Access Control”,“Event (Raw)”:{“type”:“Buffer”,“data”:[22]},“Event”:22,“Properties1 (Raw)”:{“type”:“Buffer”,“data”:[0]},“Properties1”:{“Event Parameters Length”:0,“Sequence”:false},“Sequence Number (Raw)”:{“type”:“Buffer”,“data”:[0]},“Sequence Number”:0}
Tamper alarm
[2022-01-10T20:22:35.740Z] Node[40]: [COMMAND_CLASS_NOTIFICATION] {“V1 Alarm Type (Raw)”:{“type”:“Buffer”,“data”:[7]},“V1 Alarm Type”:7,“V1 Alarm Level (Raw)”:{“type”:“Buffer”,“data”:[255]},“V1 Alarm Level”:255,“Notification Status (Raw)”:{“type”:“Buffer”,“data”:[255]},“Notification Status”:“On”,“Notification Type (Raw)”:{“type”:“Buffer”,“data”:[7]},“Notification Type”:“Home Security”,“Event (Raw)”:{“type”:“Buffer”,“data”:[3]},“Event”:3,“Properties1 (Raw)”:{“type”:“Buffer”,“data”:[0]},“Properties1”:{“Event Parameters Length”:0,“Sequence”:false},“Sequence Number (Raw)”:{“type”:“Buffer”,“data”:[0]},“Sequence Number”:0}
Just discovered… when turning back to External: off, it still demands magnet + external to be closed.
I might have to give it some time to change properly.
New app update (test: 2.7.4):
- NEW: ZD2102-5
- FIX: ZD2102-5 external switch
- FIX: ZD2102 missing alarm_generic
- FIX: ZD2102_5 alarm contact for internal and external switch
- OPT: ZD2102_5 alarm_generic -
- FIX: lower interval to prevent command queue
@PeterW There were a lot of requests in a queue so lowered the interval. Also added alarm_generic again with a separate call.
@martijnpoppen Sorry still the same.
External:off works with just magnet, just have to wait some minutes
New app update (test: 2.7.5):
- NEW: ZD2102-5
- FIX: ZD2102-5 external switch
- FIX: ZD2102 missing alarm_generic
- OPT: ZD2102_5 alarm_generic - use command class alarm for external switch
- FIX: lower interval to prevent command queue
@martijnpoppen Sorry, still the same!
@PeterW can you share a diagnostic report? The one in the Homey app
1e408882-d5c6-4763-aad0-50c16f696555
@martijnpoppen
@PeterW
So I read the manual again. So it think the ZD2102-5 works different than the ZD2102. See the part I grabbed from the manual:
External Switch: If your window needs two sensors for fully monitoring. You could use an external switch to connect with the ZD2102 for extending detection. The ZD2102 has 2 normally closed contact terminals. These can be used for additional external switch wired contacts.
(Remark: Either reed switch or external switch has been opened means “open”, but, both of them should be closed at the same time means “close”.)
Aaah!
Then it works as designed I guess! 
The different versions are in fact two similar but not identical products.
Well, I guell we can stop worrying then!
Thanks a lot for all your effort!
Peter
For the last update I added the alarm_generic again.
I think it would make sense to only use the contact_alarm.
What do you think?
New app update (test: 2.8.0):
- NEW: ZD2102-5
- FIX: ZD2102 missing alarm_generic
- FIX: lower interval to prevent command queue
@PeterW final publish. combined the external and internal in alarm_contact
And many thanks for all the coffees. Really appreciated ![]()
Yes, makes sense!
I will test and confirm.
Peter
Tested, everything seems to be as designed! 
Thanks for you great effort!
Peter
Awesome!
You also thanks again 
New app update (test: 2.8.1):
- FIX: add productID for ZF5201
Hi, have you find a way to acknowledge the Generic Alarm?
No sorry, I gave up and replaced it with a Fibaro sensor.
@martijnpoppen I have installed the app today on an original Homey Pro. I have then gone to add a ZF5201 Leak Sensor via the app and it said it was unrecognised and added it as a generic device instead. Is there another ID I need to give you to make it work?