Dome chime issues

I have added the door chime code in device handle it is not working properly

  1. I am not able to set separate sound I.e chime for door open and close…
    Separate siren sound when there is intrusion despite selecting the separate sounds in security and custom rule