Creating sensor from a pattern

I am very new to hass and may be bring concepts/language from my current HA system.

I have moderately large number of sensors that are all functional identical, but in different rooms (e.g temperature sensors). Is there some way I can create all these sensors with say just an id/name varitaion based on a list ?

thanks

there’s a way to do that with something called “anchors” in yaml that you can use to add repeating blocks of code and only change the necessary differences.

I’ve seen them used but never used them so I can’t tell you how it’s done but there are lots of hits on google. and there are examples on this forum from people who have used them.

Thanks,

knowing the right word/phrase to search with is often 90% of the problem

cheers