I create a temperature sensor in the model metadata it and tell Alexa to discover.
After a bit I’m told no smart home devices have been discovered yet if I look in the app the sensor thing is there and reporting, and I can also query it by voice.
This is normal if the device was previously discovered even you made changes on the OH side. The message indicates “no new devices have been discovered”
What is your actual issue? Could you provide more information such the item definition, the utterance you used to query and the exact response you received?
It seems Alexa does not use OH labels to uniquely identify devices, so:
a) Create a thing call ‘sensor hall’
b) Ask Alexa to discover it - Alexa says it has discovered it.
c) Change things name to ‘sensor kitchen’
d) Ask Alexa to discover it - Alexa says it cannot discover anything.
e) Change things name back to ‘sensor hall’
f) Ask Alexa to discover it - Alexa says it cannot discover anything.
The reason Alexa fails to discover the thing is that it already has in b)
Lesson: Delete devices in Alexa that you have renamed in OH.