async function getBySelector(req, res) {
    const room = await gladys.room.getBySelector(req.params.room_selector, req.query);
    const expandFields = buildExpandObject(req.query.expand);
    // if the user wants the temperature in the room
    if (expandFields.temperature) {
      room.temperature = await gladys.device.temperatureSensorManager.getTemperatureInRoom(room.id, {
        unit: req.user.temperature_unit_preference,
      });
    }
    // if the user wants the humidity in the room
    if (expandFields.humidity) {
      room.humidity = await gladys.device.humiditySensorManager.getHumidityInRoom(room.id);
    }
    res.json(room);
  }
@api {get} /api/v1/room/:room_selector get by selector
@apiName getBySelector
@apiGroup Room
@apiParam {string=temperature} [expand] Expand fields
@apiSuccessExample {json} Success-Example
{
  "id": "ac7f1ab2-0468-4750-bcdd-7e43b34e136a",
  "name": "my room",
  "selector": "my-room",
  "house_id": "7932e6b3-b944-49a9-8d63-b98b8ecb2509",
  "updated_at": "2019-05-09T04:01:48.983Z",
  "created_at": "2019-05-09T04:01:48.983Z",
  "temperature": {
    "temperature": 29,
    "unit": "celsius"
  }
}