Get all Rooms

Hopefully this will be a quick one. Is there a way to get all defined rooms from the hub? I'm working on a driver and I want to set an enum to all the available rooms. Any help with this would be greatly appreciated.

Just FYI this has been discussed before here, as well as somewhat obliquely here, and @bravenel started looking into options last year, though I don't think it led to anything.

https://raw.githubusercontent.com/thebearmay/hubitat/main/roomInfo.groovy

4 Likes

OMG, I had totally forgotten about that option. Of course you authored a solution, lol!!

P.S. That's what I call the screen-scrape approach, which brings me great joy.

3 Likes

:sunglasses:

3 Likes