I made a big mistake due to not understanding how device swap works. I paired an Aqara contact sensor with my Aqara-specific Hubitat hub, using Xiaomi Aqara Mijia Sensors and Switches. The device has only Open/Closed as a state, not temperature or anything else. On the paired hub this shows as expected.
I then used Hub Mesh to share it with my main hub.
The device was intended to replace a Smartthings contact/multi sensor on a closet door. The ST device has many types of sensor including temperature but I only require contact in that situation. So I used Swap Apps Device under settings on my main hub so that the Aqara would replace ST sensor in 4 apps it was used in. What I didn't realise is that it actually swaps the device UID, not just replaces the old device in the apps but actually gives it the old device's identity!!
So it's inherited the States of the ST sensor including temperature - and is showing the last received temperature of the ST. This is now showing on dashboards and is misleading as it is not the correct temperature for obvious reasons.
Is there anything I can do to rectify this easily or do I just have to remove it from the apps, unlink via Hub Mesh, destroy the device on the main hub, relink it as a new device and add it to the apps again as itself?
Yeah that worked thanks! I shall keep an eye on it and make sure they don't come back for any obscure reason. It also works better than changing to type Device which often doesn't get rid of the states using the commands, in my experience. So it will also be helpful to people with a device directly paired with current hub