/// <summary> /// Identify whether the bot is awake /// </summary> bool IsBotAwake(IList <EntityModel> entityList) { deviceStatus.TempDegree = 1; foreach (var entity in entityList) { if (entity.Type == "ActivationWord") { deviceStatus.IsBotAwake = true; } else if (entity.Type == "builtin.temperature") { deviceStatus.TempDegree = DeviceStatus.ParserNumberFromText(entity.Entity, 1); } } return(deviceStatus.IsBotAwake); }