Iris contact sensor v2 works perfectly but passes only temperature to Alexa.
What are you expecting it to pass to Alexa? Do you have a rule to speak the open/closed state to Alexa when it changes? What exactly do you wish to happen? Are you asking Alexa to give you the current state (open/closed)? It would help to know what you want to do. I have a rule that announces over my Google Home Mini if a door has been left open over 30 minutes. It has been working for a few years.
It's a common problem Alexa has with contact sensors that also report temperature - Alexa latches onto the temp and ignores the contact.
One solution is to add a Virtual Contact Sensor and then use the built-in Mirror app to mirror the state of the real contact to the virtual one. Then share the virtual one to Alexa instead of the real one.
E.g., this is the Mirror rule for my mailbox contact, which I use in Alexa to announce that the flap was opened.
Thank you for this reply I need to try this. UPDATE! Ok now you have done it. It has been a long time since I have done anything new with my Hubitat. Quite honestly I was wondering if I even needed it, but now that you have enlightened me to this "Virtual" and "Mirrioring" method you have opened my creativity. I successfully created several virtual sensors and they do operate as desired now. I had the same issue with Leaksmart water sensors but I have been having difficulty getting them to report properly, but it may have been because I was on my 12th hour of creativity. I was wondering if you "REPLACE" your Actual devices with your virtual devices. I was going to do that to reduce the number of "Devices" but did not want to ruin what I had created on that 12th hour.
I'm glad it has worked out for you. I had not thought about virtual devices for that purpose. I had created a couple of virtual switches to use to help inhibit some lighting operations at specific times, Thanks for telling your results.